accepts_nested_attributes_for and belongs_to

hi everyone, using Rails 2.3.5 I cannot update the attributes for a belonging object, pastie: http://pastie.org/722059

ideas? thanks

I put together a sample app that shows how to do this.

Details here: WordPress.com The project can be downloaded from github: http://github.com/canonical/OrderItemsExample

sorry, but I'm trying to update an attribute of a parent model..

It updates both parent and child models. The Parent model is the order, you can change the name of the order, add and remove children (line items), etc. I kept the data model very simple so that the basics of the form didn't get lost. You can use the same setup for any Model with a has_many child relationship.