Ruby on Rails Monday, August 1, 2011

On 1 August 2011 08:22, Chris Kottom <chris@chriskottom.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment