I want a form to edit a single new child object and the parent object in one go (in a has many relationship). If I create a new child in the controller with @child = @parent.children.new, the following works, but it displays input fields for all existing children.
<%= simple_form_for @parent do |p| %>
<%= p.input :parent_attribute %>
<%= p.simple_fields_for :children do |c| %>
<%= c.input :child_attribute %>
<% end %>
<% end %>
How can I display form input fields for only the single new child that was created?