Forum: Ruby on Rails HABTM: xxx.objects.remove yyy return value question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Joshua M. (Guest)
on 2006-01-12 18:48
Hi all

I have a HABTM relationship between partys and organisators.

When I remove party #1 from organisator #1 using
org1.parties.remove(Party.find(1)) then I get the party object as return
value. So far, so good. But when I try to remove the same party again
and again, then I don't get an error like "This party is not associated
with org1" but always the same party object!
So I can't  find out if the relationship really existed or not. Is this

Thanks and greetings
This topic is locked and can not be replied to.