diff --git a/app/views/apps/_configuration_instructions.html.haml b/app/views/apps/_configuration_instructions.html.haml index 04fc046..32a33a5 100644 --- a/app/views/apps/_configuration_instructions.html.haml +++ b/app/views/apps/_configuration_instructions.html.haml @@ -1,39 +1,38 @@ %pre - %code - :preserve + %code + :preserve + # Require the hoptoad_notifier gem in your App. + # --------------------------------------------- + # + # Rails 3 - In your Gemfile + # gem 'airbrake' + # + # Rails 2 - In environment.rb + # config.gem 'airbrake' + # + # Then add the following to config/initializers/errbit.rb + # ------------------------------------------------------- - # Require the hoptoad_notifier gem in your App. - # --------------------------------------------- - # - # Rails 3 - In your Gemfile - # gem 'airbrake' - # - # Rails 2 - In environment.rb - # config.gem 'airbrake' - # - # Then add the following to config/initializers/errbit.rb - # ------------------------------------------------------- + Airbrake.configure do |config| + config.api_key = '#{app.api_key}' + config.host = '#{request.host}' + config.port = #{request.port} + config.secure = config.port == 443 + end - Airbrake.configure do |config| - config.api_key = '#{app.api_key}' - config.host = '#{request.host}' - config.port = #{request.port} - config.secure = config.port == 443 - end - - # Set up Javascript notifications - # ------------------------------- - # - # To receive notifications for javascript errors, - # you should add <%= airbrake_javascript_notifier %> to the top of your layouts. - # - # Testing - # ------- - # - # Rails 2 - you'll need to vendor airbrake to get the rake tasks - # rake gems:unpack GEM=airbrake - # - # Run: - # rake airbrake:test - # refresh this page + # Set up Javascript notifications + # ------------------------------- + # + # To receive notifications for javascript errors, + # you should add <%= airbrake_javascript_notifier %> to the top of your layouts. + # + # Testing + # ------- + # + # Rails 2 - you'll need to vendor airbrake to get the rake tasks + # rake gems:unpack GEM=airbrake + # + # Run: + # rake airbrake:test + # refresh this page -- libgit2 0.21.2