@colin, certainly I can have a same model car twice :P whatever, it was
just a made up scenario.
@Elizabeth, railscast helped. I did it with has_many :through. :)

Thank you everyone.

2015-07-21 3:02 GMT+06:00 Elizabeth McGurty <[email protected]>:

> Don't know what your skill level is, but I would suggest checking out
> RailsCasts, #47 Two Many-to-Many:
> http://railscasts.com/episodes/47-two-many-to-many
> Your join table could be called CarOwners, as a point relevant to the
> RailsCast....  Check it out... The general idea is that it is maybe better
> if you use :has_many :through...
>
> Hope this helps.
>
> --
> 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/d33d14b9-c9b4-4bb5-9edf-4c9d79554824%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/d33d14b9-c9b4-4bb5-9edf-4c9d79554824%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
  Md. Sadaf Noor (@sadaf2605 <https://twitter.com/sadaf2605>)
 www.sadafnoor.com

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

Reply via email to