On Thursday, January 14, 2016 at 4:55:28 PM UTC+8, Colin Law wrote:
>
> On 14 January 2016 at 02:24, Lei Zhang <[email protected] <javascript:>> 
> wrote: 
> > A for person, C for organization, which means they both have names. 
> > 
> > Like, a person called John Terry, and he is affiliated to three 
> > organizations called Chelsea FC, London Something, and UK Good Football 
> > Player. ( I made up the other two org.) 
>
> I don't understand the associations then.  Does an organisation have a 
> number of affiliated people?  Does a person have many organisations to 
> which he is affiliated?  If so then you want has_and_belongs_to_many 
> or has_many_through as I said earlier. 
>

Yes, I guess I know how to do it now.
 

>
> By the way, I would find it easier to follow the thread if you could 
> not top post, but insert your comments at appropriate places in the 
> previous post.  Thanks. 
>

You mean I should reply like this? Got it.

Thank you. 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/f77f1df3-0060-437a-b201-9149dcce4764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to