# Acts\_as\_paranoid Unknown key(s): with\_deleted

**URL:** <https://www.ruby-forum.com/t/acts-as-paranoid-unknown-key-s-with-deleted/134899>\
**Category:** Rails\
**Created:** [April 16, 2008, 12:26am UTC](https://www.ruby-forum.com/t/acts-as-paranoid-unknown-key-s-with-deleted/134899 "2008-04-16T00:26:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jared](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@jared](https://www.ruby-forum.com/u/jared)\
**Post date:** [April 16, 2008, 12:26am UTC](https://www.ruby-forum.com/t/acts-as-paranoid-unknown-key-s-with-deleted/134899/1 "2008-04-16T00:26:22Z")

</div>

Trying this straight from the README:

I have acts\_as\_paranoid in my model (Course), and added the deleted\_at  
column.

This is OK:

Course.find\_with\_deleted(:all)

Course.find(:all, :with\_deleted =\> true)

gives:  
ArgumentError: Unknown key(s): with\_deleted  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/  
active\_support/core\_ext/hash/keys.rb:49:in `assert_valid_keys' from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ active_record/base.rb:1894:in`validate\_find\_options’  
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/  
active\_record/base.rb:498:in `find’  
from (irb):28

Has anyone else run into this or can someone help me out?

---

<div class="post-metadata">

**Author:** ![jared](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@jared](https://www.ruby-forum.com/u/jared)\
**Post date:** [April 16, 2008, 12:31am UTC](https://www.ruby-forum.com/t/acts-as-paranoid-unknown-key-s-with-deleted/134899/2 "2008-04-16T00:31:40Z")

</div>

the README is incorrect, you can’t use the :with\_deleted parameter. I  
ran  
into the same issue when I tried using the plugin a long time ago, so I  
just  
switched to using an implicit finder with the scope-out-rails plugin (  
[http://code.google.com/p/scope-out-rails/](http://code.google.com/p/scope-out-rails/)) and I overrode destroy in my  
model so it sets a deleted\_at value instead of deleting the record.  
Adam
