text_field(object_name, method, options = {})
object_name是model名
method传递你要显示的字段就可以了
options 和html下的名字形同
rails会自动为该text增加默认值。
text_field( "post ", "title ", "size " = > 20) =
[@more@]
object_name是model名
method传递你要显示的字段就可以了
options 和html下的名字形同
rails会自动为该text增加默认值。
text_field( "post ", "title ", "size " = > 20) =
[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9934490/viewspace-981378/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9934490/viewspace-981378/