This project is archived and is in readonly mode.

#3575 ✓resolved
Antonio Tapiador

Several join records are created when using nested_attributes in HABTM

Reported by Antonio Tapiador | December 15th, 2009 @ 03:57 PM | in 2.3.6

When creating a new instance using nested attributes, several records in the join table are created.

Attached a test that proves the bug for HasAndBelongsToMany association. The bug has been also detected in has_many :through associations.

Bug was introduced in commit 6b2291f33063b6742cba84f5f64e03de9907c1f8, hence I'm assigning a responsible :-)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>


Referenced by