Trying to use the nested model form in the new rails release candidate. I have this, but it only renders form fields for each existing associated photo object.
(Given a form builder f
that was created for my parent model object)
%h3 Photos
- f.fields_for :photos do |photo_form|
%p
= photo_form.label :caption
= photo_form.text_field :caption
%p
= photo_form.label :image_file
= photo_form.file_field :image_file
How can I use this nested forms feature to create a section of the form for a new photo object as well as editing the existing photos?