search for: presentership

Displaying 1 result from an estimated 1 matches for "presentership".

Did you mean: presenterships
2007 Feb 08
5
a possible bug in Has_many :through using :soucre
...;m not sure if it''s an error on my end or an actual bug. I have a system where I have workshops and users. Workshops have students, presenters, and troubleshooters. I wanted to represent this simply by using has_many :through with :source. Workshop has_many :presenters, :through =>:presenterships, :source=>:user This actually works great. However, I am running into a really interesting problem when doing the assignments: This works: @u = User.find 1 @w = Workshop.find 1 @w.presenterships.create :user_id => u.id But this fails: @u = User.find 1 @w = Workshop.find 1 @w.presenter...