You need to use the :index option when creating your fields (eg. with
text_field).
Stephen Chu has written a great post on this:
http://www.stephenchu.com/2008/03/paramsfu-3-using-fieldsfor-and-index.html
Hope that helps
- Barney
On May 5, 7:13 pm, user splash
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi.
>
> How do I create multiple rows in one model in a form? I have done the
> tutorial, multiple models in one form by ryan. This might be easy for
> most programmers. But I just don''t understand how to multiple rows
in
> one model in a form.
>
> Can someone please help me?
>
> Thanks
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---