1

我正在從Rails 2.6將項目升級到Rails 3.1和Jruby 1.6.4我遵循Jeremy的Rails手冊。在Jruy/Rails 3中NameError未初始化常量

現在我在啓動服務器時出現了一些錯誤。

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' 
相關問題