On Thu, Sep 17, 2009 at 1:54 PM, dino d. <[email protected]> wrote: > > hi - i have two models, A and B, and each habtm the other > > if I do > > a = A.new > b = B.new > > a.bs << b > a.bs << b > a.bs << b > > this creates 3 records in the join table. > > Is there any way for me to remove only one of these? I can only seem > to remove all of them.
This is exactly why I use join models and ignore has_and_belongs_to_many all together. -- Greg Donald http://destiney.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 [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 -~----------~----~----~----~------~----~------~--~---

