On 12 May 2010 21:05, Jesse <[email protected]> wrote:
> 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

Can you provide the full associations for each class, ie Portal,
Program, User and ProgramMembership?  I don't clearly understand what
relates to what.

Colin

>
> 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?
>
> Thanks
>
> Jess
>
>
> --
> 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.
>
>

-- 
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.

Reply via email to