You probably should have a look into : http://railscasts.com/episodes/73-complex-forms-part-1
Christophe Le 10 mars 2010 à 23:13, Dudebot a écrit : > Does anyone know how I can repeat fields for a model (that would > insert into different records) in a form? E.g. > > <% form_for @thing, do |f| %> > <%= f.submit "DoIt" %> > <%= f.text_field :value %> > <%= f.text_field :value %> > <% end %> > > So that somehow when the user pressed "DoIt", the first value would go > into a record in thing, and the second value would go into another > record? Is this possible? > > TIA, > Craig > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

