Hi, I have two models, User and Item, as well as a join model,
UserItem. So the User model includes the lines:
has_many :user_items
has_many :items, :through => :user_items
I've noticed that this doesn't work:
u = User.new
u.items.create :name => "hammer"
Any reason why? Seems like it would be a nice feature. To get around
it, I usually do this:
u.items << Item.create :name => "hammer"
or
u.user_items.create(:item => User.create(:name => "hammer"))
Thanks for your time,
Andrew