Search code examples
ruby-on-railserror-handlingruby-on-rails-pluginshoptoad

How to get Hoptoad or Airbrake Error Notification in Development Environment on Rails


Please any one help to solve, how to get hoptoad/airbrake Error Notification in Development Environment on Rails,

I have configured the airbrake correctly, and even I am getting test mail from airbrake i.e. by running rake hoptoad:test or rake airbrake:test

but other then that i dont get anything, i.e. errors, expections, etc.

Please help me to solve this problem.

Thanks


Solution

  • Add following to your config/environments/development.rb:

    config.action_controller.consider_all_requests_local = false
    

    And access your application through your non-loopback IP (not http://localhost:3000/ or http://127.0.0.1:3000/), e.g. http://192.168.1.3:3000/ (look for correct IP in your network settings).