我正在運行我的rails應用程序,它一直工作得很好,直到昨天,但今天當我運行rails server時,它給了我這個錯誤。雖然我的airbrake也沒有任何錯誤
[airbrake.rb]Rails airbrake undefined方法
Airbrake.configure do |config|
config.api_key = APP_CONFIG.airbrake.api_key
config.host = APP_CONFIG.airbrake.host
config.port = APP_CONFIG.airbrake.port
config.secure = config.port == 443
end
在負載」undefined method `api_key=' for #<Airbrake::Config:0x000000073fa1e0> (NoMethodError) from /home/techbirds/.rvm/gems/ruby-2.2.3/gems/airbrake-ruby-1.0.0/lib/airbrake-ruby.rb:98:in
從/home/techbirds/.rvm/gems/ruby-2.2.3/gem
configure' from /home/techbirds/icare-master/config/initializers/airbrake.rb:1:in
' S /的ActiveSupport-4.2.5/LIB/active_support/dependencies.rb:268:在從/home/techbirds/.rvm/gems/ruby-2.2.3/gems/activesupport-
load' from /home/techbirds/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in
塊
現在正在thx尋求幫助 –