views:

108

answers:

1

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?

A: 

This is a confirmed bug in Rails, with a fix set to be included in 2.3.6.

https://rails.lighthouseapp.com/projects/8994/tickets/3575-multiple-join-records-when-using-nested_attributes-in-habtm

BrendanDean