1

레일 2.6에서 프로젝트를 Rails 3.1 및 Jruby 1.6.4로 업그레이드하고 있습니다. Jeremy가 레일 핸드북을 따라갔습니다.Jruy/Rails 3의 NameError uninitialized 상수

이제 서버를 부팅하는 중에 오류가 발생합니다.

NameError in Adm::AuthController#login 

uninitialized constant Sentry::Dispatcher::Dispatcher 

오류 로그

Started GET "/admin/login/en/sentry" for 127.0.0.1 at Wed Oct 05 16:59:00 -0400 
2011 
Processing by Adm::AuthController#login as HTML 
Parameters: {"brand"=>"sentry", "language"=>"en"} 
Completed 500 Internal Server Error in 9ms 

NameError (uninitialized constant Sentry::Dispatcher::Dispatcher): 
lib/sentry/dispatcher/application_dispatcher.rb:11:in `initialize' 
app/controllers/application_controller.rb:90:in `before_interceptors' 

    Rendered C:/Users/matin/.pik/rubies/JRuby-164/lib/ruby/gems/1.8/gems/actionpack- 
    3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (5.0ms) 
    Rendered C:/Users/matin/.pik/rubies/JRuby-164/lib/ruby/gems/1.8/gems/actionpack- 
    3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb 
(5.0ms) 
Rendered C:/Users/matin/.pik/rubies/JRuby-164/lib/ruby/gems/1.8/gems/actionpack- 
3.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within re 
scues/layout (30.0ms) 

답변

0

이 나를 위해 작동합니다 ..

당신이

include 'sentry/dispatcher/dispatcher' 
(이 경우)처럼뿐만 아니라 클래스를 포함 할 필요가 업그레이드하는 동안