Forum: Ruby on Rails text_field or text_field_tag

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
zero0x (Guest)
on 2008-12-29 20:32
(Received via mailing list)
Hi,

I'm watching Ryan B.' forms screencast #1, and he says that I
should use text_field when I'm updating an object, otherwise
text_field_tag.

How about this: I'm looping through each row of a table and displaying
form for each. (but there's only one form, because I want it to be
submited all at once). Now I'm not sure how should I do it, so far I
have something like text_field("item_#{item.id}", "title", {:value =>
item.title});

Is this a good way?
This topic is locked and can not be replied to.