2014-12-22 67 views
4

升級到Rails 4.2後,我很興奮嘗試新集成的Web控制檯,但我遇到了一些問題。Rails 4.2網絡控制檯問題

在Rails 4.2的發行說明中,它提到:「使用Rails 4.2生成的新應用程序現在默認帶有Web Console gem。」

由於我升級到4.2,我認爲這意味着我仍然必須在我的Gemfile中指定它。沒有把它添加到我的Gemfile中,rails只是給了我「未定義的局部變量或方法`控制檯'」,所以我認爲這是事實。

一旦我加入的寶石 'Web的控制檯', '〜> 2.0' 到Gemfile中,並運行Rails服務器,我現在得到:

/home/kevin/.rvm/gems/ruby-2.1.5/gems/binding_of_caller-0.7.3.pre1/lib/binding_of_caller/mri2.rb:21:in `callers': uninitialized constant RubyVM::DebugInspector (NameError) 
    from /home/kevin/.rvm/gems/ruby-2.1.5/gems/better_errors-2.0.0/lib/better_errors/exception_extension.rb:7:in `set_backtrace' 
    from /home/kevin/.rvm/gems/[email protected]/gems/bundler-1.7.6/lib/bundler/runtime.rb:76:in `require' 
    from /home/kevin/.rvm/gems/[email protected]/gems/bundler-1.7.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require' 
    from /home/kevin/.rvm/gems/[email protected]/gems/bundler-1.7.6/lib/bundler/runtime.rb:72:in `each' 
    from /home/kevin/.rvm/gems/[email protected]/gems/bundler-1.7.6/lib/bundler/runtime.rb:72:in `block in require' 
    from /home/kevin/.rvm/gems/[email protected]/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `each' 
    from /home/kevin/.rvm/gems/[email protected]/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `require' 
    from /home/kevin/.rvm/gems/[email protected]/gems/bundler-1.7.6/lib/bundler.rb:133:in `require' 
    from /home/kevin/workspace/applications/ems-heroes/config/application.rb:6:in `<top (required)>' 
    from /home/kevin/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require' 
    from /home/kevin/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server' 
    from /home/kevin/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap' 
    from /home/kevin/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server' 
    from /home/kevin/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!' 
    from /home/kevin/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>' 
    from bin/rails:4:in `require' 
    from bin/rails:4:in `<main>' 

我用Google搜索周圍,並沒有找到太多。任何意見是極大的讚賞。

謝謝!

+1

你做捆綁舞蹈來完成升級?你有沒有'耙路軌:更新'? – Doon

+0

還有一個關於web_console和better_errors現在正在運行的問題,但是錯誤與您的不同。 – Doon

+0

我確實做過捆綁舞,並且在那裏遇到了一些小問題。我還介紹了耙路軌:在您提到它之後更新。仍然沒有解決這個錯誤:( – kevinweaver

回答