On Dec 26, 2:57 am, Fritz Trapper
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> I want do build a view for a 1:n model for funtion new.
>
> Rendering the form for the attributes of the independent (1) record is
> done automatically.
>
> But how to create the variable number of inputs for the dependent (n)
> records?
> --
> Posted viahttp://www.ruby-forum.com/.
Look for the railscast series on complex forms (# 73-75).
In a nutshell you''ll need to use Ajax to dynamically add input
elements and pass all the values of those elements to the controller
in an array.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.