0

我是 Rails 新手,所以我真的不知道如何诊断这个问题。我正在尝试将工作用于一些后台任务,但是我遇到了问题。当我在我的 Gemfile 中包含工作 gem 时,然后运行“捆绑安装”。运行“rails s”时出现以下错误。谷歌搜索这个错误确实提到了更新 gem,但是我今天早上使用 rvm 安装了 ruby​​ 和 gem,所以我怀疑这是问题所在。

宝石文件:

gem 'workling', '~> 0.4.9.9'

错误:

$ rails s
/home/usr1/.rvm/gems/ruby-1.9.3-p429/gems/workling-0.4.9.9/lib/workling.rb:16:in `<class:Hash>': uninitialized constant ActiveSupport::CoreExtensions (NameError)
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429/gems/workling-0.4.9.9/lib/workling.rb:15:in `<top (required)>'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /home/usr1/rock/config/application.rb:7:in `<top (required)>'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in <top (required)>'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
    from /home/usr1/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
4

1 回答 1

0

我做了一些谷歌搜索,并决定使用另一个 gem。你可以在这里看到对我有帮助的答案。

于 2013-05-27T20:27:18.250 回答