# Acts\_as\_list error - help!

**URL:** <https://www.ruby-forum.com/t/acts-as-list-error-help/132539>\
**Category:** Rails\
**Created:** [March 21, 2008, 6:33am UTC](https://www.ruby-forum.com/t/acts-as-list-error-help/132539 "2008-03-21T06:33:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 21, 2008, 6:33am UTC](https://www.ruby-forum.com/t/acts-as-list-error-help/132539/1 "2008-03-21T06:33:08Z")

</div>

I’m having a problem with acts\_as\_list, and I’m stumped. I have two  
models: page and item. A page contains a list of items:

class Page \< ActiveRecord::Base  
has\_many :items, :dependent =\> :destroy, :order =\> :position  
belongs\_to :portfolio  
…

class Item \< ActiveRecord::Base  
belongs\_to :page  
acts\_as\_list :scope =\> :page  
…

When I try to destroy an item, I get this error:

NoMethodError in ItemsController#destroy  
undefined method `updated?’ for #Page:0x26eeedc

If I remove the :dependent =\> :destroy in the has\_many declaration,  
everything works fine (the item’s page\_id is nulled, but the item  
isn’t destroyed). Any idea what I’m doing wrong? I’ve Googled til my  
fingers bled, but no luck. Any help is greatly appreciated!
