Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Pablo,</p> <p>Thanks for pointing out the holes in the documentation. I will setup a blank rails project and then clearly enumerate the steps. I have already updated the Readme in response to the tickets you created on github.</p> <p>To help with you immediate problem this is how I have it setup, (and it works for me! :) Not all parts of this are essential to it working, but I'm not editing it (much), so you can see what I have:</p> <p>I have this in my environment.rb:</p> <pre><code> config.load_paths += %W( #{RAILS_ROOT}/app/middlewares #{RAILS_ROOT}/app/mixins #{RAILS_ROOT}/app/classes #{RAILS_ROOT}/app/mailers #{RAILS_ROOT}/app/observers ) </code></pre> <p>I have an initializer in config/initializers/super_exception_notification.rb</p> <pre><code> #The constants ($) are set in the config/environments files. ExceptionNotifier.configure_exception_notifier do |config| config[:render_only] = false config[:skip_local_notification] = false config[:view_path] = 'app/views/errors' config[:exception_recipients] = $ERROR_MAIL_RECIPIENTS config[:send_email_error_codes] = $ERROR_STATUS_SEND_EMAIL #config[:sender_address] = %("RINO #{(defined?(Rails) ? Rails.env : RAILS_ENV).humanize} Error" ) config[:sender_address] = "errors@swankywebdesign.com" config[:email_prefix] = "[RINO #{(defined?(Rails) ? Rails.env : RAILS_ENV).capitalize} ERROR] " end </code></pre> <p>Then in my application.rb I have this:</p> <pre><code> include ExceptionNotifiable, CustomEnvironments alias :rescue_action_locally :rescue_action_in_public if Environments.local_environments.include?(Rails.env) self.error_layout = 'errors' self.exception_notifiable_verbose = false self.exception_notifiable_silent_exceptions = [MethodDisabled] </code></pre> <p>Then I also have this mixin in my app/mixins directory:</p> <pre><code>module CustomEnvironments module Environments def self.local_environments %w( development test ) end def self.deployed_environments %w( production staging ) end end end </code></pre> <p>One other thing, this plugin does not abolish the rails standard which is that things in public are trump. So if you have 404.html in public, it will always get rendered for 404's.</p> <ul> <li>Peter</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload