I have problems with getting a has_many through association to work.
has_many through
I keep getting this exception:
Article.find(1).warehouses.build Act
You need to add
has_many :entries
To each of your models, since the :through option just specifies a second association which it should use to find the other side.