Hi All, I am trying to do something similar and am running into an issue on it
I have a setup where
Portal has many Programs
program has many users through program_memberships
user has many portals through program_memberships
I am trying to get it so that portal has many users through programs through program_memberships and that user belongs to portal through the same
so I add has_many :users, :through => :programs to the portal model and belongs_to :portals, :through => :programs to the user model
I get an internal server error 500 for this one. if I switch user to has_many :portals I just get a source error.
Is there something that I am missing or that I am thinking about in a wrong way?