# Accepts\_nested\_attributes + polymorphic association

**URL:** <https://www.ruby-forum.com/t/accepts-nested-attributes-polymorphic-association/186656>\
**Category:** Rails\
**Created:** [April 10, 2010, 7:28pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-polymorphic-association/186656 "2010-04-10T19:28:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [April 10, 2010, 7:28pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-polymorphic-association/186656/1 "2010-04-10T19:28:50Z")

</div>

im having an issue where my my polymorphic associations arent being  
deleted when using accepts nested attributes  
there are other accepts\_nested\_attributes being used and they are  
deleting fine, just the polymorphic association  
before i go down the path of intense thrashing at this…is this a known  
issue or problem?

---

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [April 13, 2010, 12:06am UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-polymorphic-association/186656/2 "2010-04-13T00:06:25Z")

</div>

i was so wrapped up in the polymorphic + nested attributes, i forgot  
:dependent =\> :destroy on the model i was having issues with

doh!
