Ruby on Rails
Wednesday, April 4, 2012
Hi!
I have a nested form with Applications and Participants. One application can have many participants. Now I want to be able to dynamically (using JS) add fields for the Participants in the Applications form.
I'm a bit lost on how to do it though... I did watch some videos on RailsCasts (#196, #197) but they seem rather outdated.
I guess I should be able to create some kind of JS-partial that renders only the Participant part of the form and inject it using javascript, the problem would then be, how do I get the form object to the JS... Not possible, right?
So, anyone can give me some tips with this?
Regards
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/mCN57ryNzMsJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment