2014-12-22 4 views
4

Rails 4.2로 업그레이드 한 후 새로 통합 된 웹 콘솔을 사용해 보았습니다. 몇 가지 문제가 있습니다.Rails 4.2 웹 콘솔 문제

Rails 4.2 릴리스 노트에서 "Rails 4.2로 생성 된 새로운 응용 프로그램은 기본적으로 웹 콘솔 보석과 함께 제공됩니다."

4.2 버전으로 업그레이드 한 이후, 필자는 여전히 내 Gemfile에 지정해야한다는 것을 의미한다고 가정합니다. 내 Gemfile에 추가하지 않으면, 레일이 "정의되지 않은 지역 변수 또는 메소드`console '"을 제공하기 때문에 필자는 그렇게 가정합니다.

은 내가 Gemfile에, '~> 2.0'보석 '웹 콘솔'을 추가하면하고 실행 레일 서버는, 지금 얻을 :

/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>' 

내가 주변에 검색 좀하고 많이 찾을 didnt한다. 어떤 조언을 크게 주시면 감사하겠습니다.

감사합니다.

+1

당신이 업그레이드를 완료 번들 춤을 했는가? 그리고 당신은 'rake rails : update'합니까? – Doon

+0

또한 web_console 및 better_errors에 대한 공개 문제가 있지만 현재 오류가 있습니다. – Doon

+0

나는 번들 댄스를했고 거기에 몇 가지 사소한 문제가 발생했습니다. 나는 또한 레이크 레일을 밟았다 : 당신이 그것을 언급 한 후 업데이트. 그래도이 오류를 해결하지 못했습니다. ( – kevinweaver

답변