rails, accepts_nested and has_many :through is creating duplicate entries

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-04-04T05:27:42Z Indexed on 2010/04/04 5:33 UTC
Read the original article Hit count: 146

Filed under:

Hi,

I have a store model that has many products with a has_many :through relationship.

I have this working with accepts_nested_attributes, but the result is that rails is making duplicate associates.

I don't have anything special going on it is a very simple app.

Any ideas on why duplicates associates are getting created?

© Stack Overflow or respective owner

Related posts about ruby-on-rails