rails/rails — Issue #5080: foreign key not set when building has_many :through => a belongs_to
Author: samwgoldman
Created: 2012-02-18 09:43:06+00:00
State: open

I made a reduced test case for a behavior I didn't expect in active record, related to building records through a has_many :through association. Can someone explain why my expectation is different from reality?

Sorry for the isolated test case instead of a test case in the official style. I found it difficult to write this in the official test suite.

https://gist.github.com/1858435