I think you want to have 1 form that saves both the main object and all child objects. If not, do not pay attention.
In rails, this is called "nested_attributes"
you add this to your model:
accepts_nested_attributes_for :quotes
and then in the form of a form:
<% form.fields_for :quotes do |child_form| %> <%= child_form.text_field :name %> <% end %>
Check it out on the Ryan blog: Nested Attributes
source share