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

Tickets have moved to Github

The new ticket tracker is available at https://github.com/rails/rails/issues

Shared Ticket Bins

Attachments

Referenced by

Pages