> p.categories now has TWO catBike

Because << does not ask questions. It just adds a catBike. If you already had 
one, now you have two.

You might need some combination of these:

   a :unique => true on the habtm (spelling?)
   a unique key (index) on the database



--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to