Ruby on Rails Thursday, January 14, 2016

On 14 January 2016 at 02:24, Lei Zhang <ray.zhang.cn@gmail.com> 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.

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.

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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv_5U792NRZMK5jOYO%2BMEOn_oy%3D8jYRhU%2B4ZsxtW-Ti-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment