Text_field or text_field_tag


#1

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?