RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: tommygarces
Hi, Im pretty new to Rails, and Im using Cocoon. I would like to know if instead of setting the association to 'people', I could somehow get an specific one, like Person.find(id) when using link_to_add_association
= link_to_add_association 'add person', f, :people
Got it working, great video! but how can I get the id of the record in a hidden field?
Hi,
Im pretty new to Rails, and Im using Cocoon.
I would like to know if instead of setting the association to 'people', I could somehow get an specific one, like Person.find(id) when using link_to_add_association
Got it working, great video! but how can I get the id of the record in a hidden field?