Hi,
I''m watching Ryan Bates'' 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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---