1

我正在尝试使用acts_as_paranoid gem,已添加到Gemfile(gem'acts_as_paranoid')捆绑包中更新并安装安装acts_as_paranoid(0.3.1)但是当我启动我的服务器时出现以下错误,有什么想法吗?非常感谢!

/Users/jcr/.rvm/rubies/ruby-1.9.3-p448/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/jcr/web/sss/bin/rails server -b 0.0.0.0 -p 3000 -e development

/Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/acts_as_paranoid-0.3.1/lib/acts_as_paranoid.rb:42:in `alias_method': undefined method `validate_find_options' for class `Class' (NameError)
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/acts_as_paranoid-0.3.1/lib/acts_as_paranoid.rb:42:in `singletonclass'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/acts_as_paranoid-0.3.1/lib/acts_as_paranoid.rb:41:in `included'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/acts_as_paranoid-0.3.1/lib/acts_as_paranoid.rb:166:in `include'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/acts_as_paranoid-0.3.1/lib/acts_as_paranoid.rb:166:in `<top (required)>'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/jcr/web/sss/config/application.rb:7:in `<top (required)>'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
    from /Users/jcr/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
    from /Users/jcr/web/sss/bin/rails:4:in `require'
    from /Users/jcr/web/sss/bin/rails:4:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

Process finished with exit code 1
4

1 回答 1

3

那颗宝石看起来已经死了,我认为该validate_find_options方法已在 Rails 4 中删除。

看起来偏执狂是当前的替代品。

于 2013-08-28T13:45:14.190 回答