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/) and I overrode destroy in my
model so it sets a deleted_at value instead of deleting the record.
Adam
On 4/15/08, jared
<jared-VJfLvbK0/zGaMPzRcYMCawC/G2K4zDHf@public.gmane.org>
wrote:>
>
> 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?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---