# HABTM: xxx.objects.remove yyy return value question

**URL:** <https://www.ruby-forum.com/t/habtm-xxx-objects-remove-yyy-return-value-question/95089>\
**Category:** Rails\
**Created:** [January 12, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/habtm-xxx-objects-remove-yyy-return-value-question/95089 "2006-01-12T17:48:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [January 12, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/habtm-xxx-objects-remove-yyy-return-value-question/95089/1 "2006-01-12T17:48:50Z")

</div>

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  
normal?

Thanks and greetings  
Josh
