Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActiveRecord: nested_attributes and associations bug

#6723

There is a bug in AR when trying to associate and update a record with another one
through nested_attributes and has_many/belongs_to depending on how the params are sorted.
I suspect the same behaviour probably is happening with has_one/belongs_to.

Bug reproductible with rails 3.0.7, demo app illustrating it:

https://github.com/jeremyvdw/Piracy (check the README file for details)

Reported by --- · April 19th, 2011 @ 02:49 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. germaninthetown
    germaninthetown

    just checked it with edge (3.1.0.beta) and the spec didn't failed

    May 2nd, 2011 @ 12:19 PM