On 14 January 2016 at 14:26, Lei Zhang <[email protected]> wrote: > > > 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]> 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.
Excellent. > >> >> >> 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. Yes please, the list does not have a specific requirement but personally I find it much better as one does not have to search down looking for what is being replied to. For someone asking a question it is not so much of an issue as they know what they asked but for those asking who maybe have a dozen questions on the go in a number of mailing lists then the context of each question is not necessarily immediately remembered. > > Thank you. Glad to be of help Colin -- 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/CAL%3D0gLvgVmT9%3DnR2FYNLJ0TZg8-TJxWnkZwohiu7xmU%3DRynBXg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

