On 17 January 2012 13:24, Mohamad El-Husseini <[email protected]> wrote:
> @Jordan, thank you for the explanation. I'm having a hard time seeing what
> the relationships model looks like:  id, user_id, blog_id,
> relationship_type_id? In that, the relationship_type_id decides if the
> relationship is a user or an editor?
>
> Blog
> belongs_to organization
> belongs_to editor through relationships
> belongs_to subscriber through relationships
>
> I also haven't thought about a privileges table yet, so I'm unsure what that
> class would look like.
>
> @Aline, it's funny, I always approach a new app by creating a user model,
> then login and authentication. Interesting approach.

You don't seem to have asked a clear question that can be answered.
Have you worked through (and understood) the Rails Guide on
ActiveRecord Relationships?  If you make sure you understand that
fully then I suspect you will be able to answer your own question.  If
there is something there that is not clear then ask for clarification.

Colin

>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/huqUZJnWAzYJ.
>
> 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.



-- 
gplus.to/clanlaw

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