I have a model Person and a model Option. Option belongs_to person, and Person has_many options. In the form for creating a new Person I want to be able to add several Options before you save the Person. What is the best way to do this?
3 Answers
It isn't necessarily the best solution, but Ryan Bates' nested_form library makes managing dynamic form elements for associated models quite easy. Easy to install and the usage directions in the README sound like they cover your basic case.
Comments
You might find my question, which was answered, and for which I post more or less complete solution files for, to be of use with nested associations: