Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

tommygarces's Profile

GitHub User: tommygarces

Comments by

Avatar

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
Avatar

Got it working, great video! but how can I get the id of the record in a hidden field?