Skip to content

Commit

Permalink
Updated README, fixed JS rescue template missed HT reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Siegel authored and Jonathan Siegel committed Nov 2, 2011
1 parent 3ff689e commit 81cd20a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions INSTALL
@@ -1,25 +1,25 @@
=== Configuration === Configuration


You should have something like this in config/initializers/hoptoad.rb. You should have something like this in config/initializers/airbrake.rb.


HoptoadNotifier.configure do |config| Airbrake.configure do |config|
config.api_key = '1234567890abcdef' config.api_key = '1234567890abcdef'
end end


(Please note that this configuration should be in a global configuration, and (Please note that this configuration should be in a global configuration, and
is *not* environment-specific. Hoptoad is smart enough to know what errors are is *not* environment-specific. Airbrake is smart enough to know what errors are
caused by what environments, so your staging errors don't get mixed in with caused by what environments, so your staging errors don't get mixed in with
your production errors.) your production errors.)


You can test that Hoptoad is working in your production environment by using You can test that Airbrake is working in your production environment by using
this rake task (from RAILS_ROOT): this rake task (from RAILS_ROOT):


rake hoptoad:test rake airbrake:test


If everything is configured properly, that task will send a notice to Hoptoad If everything is configured properly, that task will send a notice to Airbrake
which will be visible immediately. which will be visible immediately.


NOTE FOR RAILS 1.2.* USERS: NOTE FOR RAILS 1.2.* USERS:


You will need to copy the hoptoad_notifier_tasks.rake file into your You will need to copy the airbrake_tasks.rb file into your
RAILS_ROOT/lib/tasks directory in order for the rake hoptoad:test task to work. RAILS_ROOT/lib/tasks directory in order for the rake airbrake:test task to work.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -16,15 +16,15 @@ For discussion of Airbrake development check out the [mailing list](http://group
Rails Installation Rails Installation
------------------ ------------------


### Remove exception_notifier ### Remove hoptoad_notifier


in your ApplicationController, REMOVE this line: in your ApplicationController, REMOVE this line:


include ExceptionNotifiable include HoptoadNotifiable


In your config/environment* files, remove all references to ExceptionNotifier In your config/environment* files, remove all references to HoptoadNotifier


Remove the vendor/plugins/exception_notifier directory. Remove the vendor/plugins/hoptoad_notifier directory.


### Remove hoptoad_notifier plugin ### Remove hoptoad_notifier plugin


Expand Down
2 changes: 1 addition & 1 deletion lib/templates/rescue.erb
Expand Up @@ -70,7 +70,7 @@ var Airbrake = {
}; };


window.onload = function() { window.onload = function() {
Airbrake.initialize.apply(Hoptoad); Airbrake.initialize.apply(Airbrake);
}; };
</script> </script>


Expand Down

0 comments on commit 81cd20a

Please sign in to comment.