config.gem "newrelic_rpm"
然后,在浏览器中我给了:
http://localhost:3000/newrelic
然后,它显示错误消息如下:
Routing Error No route matches “/newrelic” with {:method=>:get}
能帮我解决这个问题吗?
提前致谢…
配置/环境/ development.rb
require 'new_relic/rack/developer_mode' config.middleware.use NewRelic::Rack::DeveloperMode ENV['NEWRELIC_ENABLE'] = 'true'
设置ENV [‘NEWRELIC_ENABLE’] =’true’可以监视你想要的东西(rake任务等…)