hello,
in a HABTM relationship, does the primary key (category_id, product_id)
of the joint table guarantee that you can''t insert (1,2) twice into the
join table? for instance a category would not list the same product
twice.
i''m just trying to understand the example code given for the section on
Many-to-Many Associations as shown in the first edition of the Agile
w/Rails book.
thanks,
binh
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---