我写了一份简单的ROR申请,我用空布拉克语提出了一个例外。 这是我的以下法典:
require airbrake
require config/initializers/airbrake
begin
raise "Serious problems happened"
params = {
:api_key => Airbrake.api_key,
:error_message => Notification ,
:backtrace => caller,
:parameters => {},
:session => {}
}
rescue => e
Airbrake.notify(:error_class => "Special Error", :error_message => "Spe
cial Error: #{e.message}", :parameters => params)
end
一如操作上述法典,一米可得出以下例外:
/root/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/cus
tom_require.rb:55:in `require : no such file to load -- config/initializers/airb
rake (LoadError)
from /root/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1
/rubygems/custom_require.rb:55:in `require
from sample.rb:2:in `<main>
但我不知道为什么不走这条路。
这里的问题是什么