On 21 July 2015 at 10:27, Sadaf Noor <[email protected]> wrote:

> @colin, certainly I can have a same model car twice :P whatever, it was
> just a made up scenario.
>

If it is the model of car (not an actual car) then you should call the
model CarModel or similar to avoid confusion.  In that case I agree with
Elizabeth, use has_many through.  Also you might like to consider having a
counter in the join table rather than multiple joins, or perhaps that is
what you have done already.

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%3D0gLuy2Q-KypokmncPC29p0KXFBNTdv41hBK0AQeb57zQj8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to