4

Rails 3.1.10にアップグレードした後、デバイスバージョン2.2.3を使用すると、DeviceAsyncは次のエラーをスローします。

/usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/devise-async-0.6.0/lib/devise/async.rb:42:in `<top (required)>': undefined method `add_module' for Devise:Module (NoMethodError)
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `block in require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/devise-async-0.6.0/lib/devise-async.rb:1:in `<top (required)>'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
from /devel/off/ruby/rails/aodb/config/application.rb:7:in `<top (required)>'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.10/lib/rails/commands.rb:52:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.10/lib/rails/commands.rb:52:in `block in <top (required)>'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.10/lib/rails/commands.rb:49:in `tap'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.10/lib/rails/commands.rb:49:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

何をすべきか考えていますか?

4

1 に答える 1

9

「gemdevise-async」を「gemdevise」の下に移動すると、この問題が解決します。

于 2013-02-03T17:47:08.827 に答える