未初始化的常量Valium :: ValueOf(NameError)

时间:2015-09-24 03:00:42

标签: ruby-on-rails bundler

当我启动rails项目时出现以下错误时出错。我觉得可能是因为宝石版本不兼容但我不确定是不是因为Bundler gem或Valium gem。提前感谢您的回复。

root@ip-10-152-178-228:/var/www/resource_map_sea# bundle exec rails s
/usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/valium-0.5.0/lib/valium.rb:113:in `<top (required)>': uninitialized constant Valium::ValueOf (NameError)
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `require'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `each'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `block in require'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `each'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `require'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/bundler-1.5.3/lib/bundler.rb:131:in `require'
    from /var/www/resource_map_sea/config/application.rb:13:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:79:in `require'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:79:in `block in server'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:76:in `tap'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:76:in `server'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
    from /usr/local/rvm/gems/ruby-2.1.2@resource_map_v4/gems/railties-4.1.13/lib/rails/commands.rb:17:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

0 个答案:

没有答案