Skip to content

Commit

Permalink
cleanup documentation so it installs properly
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Oct 12, 2008
1 parent 1299cfa commit 2066055
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
log/*
.DS_Store
coverage
pkg
10 changes: 7 additions & 3 deletions README
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@ Usage:
3) Require hoptoad in init.rb 3) Require hoptoad in init.rb
require 'merb_hoptoad_notifier' require 'merb_hoptoad_notifier'


5) Create an exceptions controller like this: 4) Add the following method to your Exceptions controller.


class Exceptions < Merb::Controller class Exceptions < Merb::Controller


def internal_server_error def exceptions
HoptoadNotifier.notify_hoptoad(request, session) if [ 'staging', 'production' ].include?(Merb.env) HoptoadNotifier.notify_hoptoad(request, session) if [ 'staging', 'production' ].include?(Merb.env)
render render
end end


end end


4) Restart the server, trigger an error and check that it arrived at hoptoad :) 5) Restart the server, trigger an error(in staging or prod) and check that it arrived at hoptoad :)


Many thanks to Joakim Kolsjö for creating most of the hoptoad code. I just spec'd and updated it. ;)

5 changes: 1 addition & 4 deletions TODO
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,2 @@
TODO: TODO:
Fix LICENSE with your name See if there's any more rich information we could provide to hoptoad
Fix Rakefile with your name and contact info
Add your code to lib/merb_hoptoad_notifier.rb
Add your Merb rake tasks to lib/merb_hoptoad_notifier/merbtasks.rb

0 comments on commit 2066055

Please sign in to comment.