I'm testing out Hoptoad with a bare Rails 3 project.
I followed the instructions to bundle install the gem and run the
generator and so forth. The rake hoptoad:test runs fine, and I can see
the error in the hoptoad admin.
However, when I access the following controller action:
def index
raise 'hell'
end
...hoptoad is not notified. Furthermore, I get a NoMethodError when I
try to use notify_hoptoad instead.
I dug into the code and it seems that 'hoptoad_notifier/rails' is
never required, and therefore HN::Rails::ActionControllerCatcher is
never included in AC::Base. When I manually require 'hoptoad_notifier/
rails' (in config/initializers/hoptoad.rb), I get a NameError
"undefined method `rescue_action_in_public' for class
`ActionController::Base'". It looks like that method is now in
ActionDispatch::ShowExceptions, so I made the following patch to
rails.rb, which also includes a change to the middleware insertion
code, because ActionController::Failsafe is not found in the
middleware stack:
https://gist.github.com/1662b796162234391859
The patch lets the server start correctly, but I'm still not seeing
errors from the controller in the hoptoad admin when I expect to.
Is anyone else actually using Hoptoad with Rails 3? What am I missing
here?
Thanks,
James