Brian wrote: [...] > class User < ActiveRecord::Base > has_one :membership > has_one :role, :through => :membership > end > > class Membership < ActiveRecord::Base > belongs_to :user > belongs_to :role > end > > class Role < ActiveRecord::Base > end [...]
I don't know if this is the problem, but I think you forgot Role has_many :memberships. I'll admit, though, that in this case I don't really see that the Membership model is any use. Why aren't you just connecting User and Role directly? Best, -- Marnen Laibow-Koser [email protected] http://www.marnen.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

