On 1 August 2011 08:22, Chris Kottom <[email protected]> wrote:

> Add an accepts_nested_attributes_for call to Delivery for :delivery_items.

done

> Add a quantity attribute to DeliveryItem

already done

> Change the form from a single select with a list of Products to a number of
> rows, each with a single-item select for Product and a text field for
> entering quantity.

But DeliveryItem belongs_to :product so to add, say three products, I
have to create three delivery_items submitting the form three times.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to