I am reading Steve Holzner's Beginning ruby on rails book these days but I found some content seems to be out of date.
I met a problem now that such a statement <%= start_form_tag ({:action => “at”}, {:method => “post”}) %>
and <%= text_field_tag (“text1”, “”, {“size” => 30}) %>
is wrong.
Could any body tell me how to correct them or tell me somewhere I could find the documentations about initializing such helper method.
Hopefully the following are helpful:
On a related note, I would recommend using an up-to-date tutorial like Rails Tutorial book instead of the outdated Beginning Ruby on Rails
book.
form_tag ({:action => “at”}, {:method => “post”}) %> <%= text_field_tag (“text1”, “”, {“size” => 30}) %>.
This should be working one
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.