CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 04 Aug 2025 15:47:39 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081002110435
location: https://web.archive.org/web/20081002110435/https://github.com/rails/exception_notification/tree
server-timing: captures_list;dur=0.950851, exclusion.robots;dur=0.031378, exclusion.robots.policy;dur=0.013271, esindex;dur=0.016021, cdx.remote;dur=35.296010, LoadShardBlock;dur=442.346029, PetaboxLoader3.datanode;dur=90.282811, PetaboxLoader3.resolve;dur=225.633951
x-app-server: wwwb-app214
x-ts: 302
x-tr: 535
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app214; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Mon, 04 Aug 2025 15:47:41 GMT
content-type: text/html; charset=utf-8
content-length: 124
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Thu, 02 Oct 2008 11:04:34 GMT
x-archive-orig-connection: close
x-archive-orig-status: 302 Found
location: https://web.archive.org/web/20081002110435/https://github.com/rails/exception_notification/tree/master
x-archive-orig-x-runtime: 0.10976
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 124
cache-control: max-age=1800
memento-datetime: Thu, 02 Oct 2008 11:04:35 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 07 Jul 2008 12:55:30 GMT", ; rel="prev memento"; datetime="Sun, 03 Aug 2008 02:18:06 GMT", ; rel="memento"; datetime="Thu, 02 Oct 2008 11:04:35 GMT", ; rel="next memento"; datetime="Thu, 04 Dec 2008 13:15:05 GMT", ; rel="last memento"; datetime="Sat, 24 Aug 2013 14:01:51 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_5_20081002091726_crawl104-c/52_5_20081002110410_crawl103.arc.gz
server-timing: captures_list;dur=0.731578, exclusion.robots;dur=0.030527, exclusion.robots.policy;dur=0.012128, esindex;dur=0.015793, cdx.remote;dur=134.092728, LoadShardBlock;dur=491.104828, PetaboxLoader3.datanode;dur=307.865953, PetaboxLoader3.resolve;dur=322.194109, load_resource;dur=191.556381
x-app-server: wwwb-app214
x-ts: 302
x-tr: 850
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 04 Aug 2025 15:47:41 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Thu, 02 Oct 2008 11:04:34 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 0.61957
x-archive-orig-etag: "e1f6b1926db690adfde6b12efd6b6736"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 18132
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 02 Oct 2008 11:04:35 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 07 Jun 2008 00:17:18 GMT", ; rel="prev memento"; datetime="Sat, 13 Sep 2008 05:05:56 GMT", ; rel="memento"; datetime="Thu, 02 Oct 2008 11:04:35 GMT", ; rel="next memento"; datetime="Mon, 06 Oct 2008 21:15:37 GMT", ; rel="last memento"; datetime="Mon, 25 Nov 2024 09:40:53 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_5_20081002091726_crawl104-c/52_5_20081002110410_crawl103.arc.gz
server-timing: captures_list;dur=0.487531, exclusion.robots;dur=0.015225, exclusion.robots.policy;dur=0.006869, esindex;dur=0.012692, cdx.remote;dur=1.678703, LoadShardBlock;dur=345.276203, PetaboxLoader3.datanode;dur=205.264440, PetaboxLoader3.resolve;dur=364.223648, load_resource;dur=284.744320
x-app-server: wwwb-app214
x-ts: 200
x-tr: 680
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=2
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
rails's exception_notification at master — GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Exception Notifier Plugin for Rails |
Homepage: | https://rubyonrails.org |
Clone URL: |
git://github.com/rails/exception_notification.git
Give this clone URL to anyone.
git clone git://github.com/rails/exception_notification.git
|
name | age | message | |
---|---|---|---|
![]() |
README | Sat Oct 29 17:00:58 -0700 2005 | Correct error in documentation [jamis] |
![]() |
init.rb | Sat Oct 29 08:16:10 -0700 2005 | Added ExceptionNotification to get emails when ... [dhh] |
![]() |
lib/ | Sat Jun 07 21:26:13 -0700 2008 | working around that filter_parameters is protec... [trevorturk] |
![]() |
test/ | Tue Jun 26 19:52:48 -0700 2007 | param filtering for exception notification (clo... [jamis] |
![]() |
views/ | Fri Nov 23 09:22:21 -0800 2007 | consider the X-FORWARDED-HOST value before HOST... [jamis] |
README
= Exception Notifier Plugin for Rails The Exception Notifier plugin provides a mailer object and a default set of templates for sending email notifications when errors occur in a Rails application. The plugin is configurable, allowing programmers to specify: * the sender address of the email * the recipient addresses * the text used to prefix the subject line The email includes information about the current request, session, and environment, and also gives a backtrace of the exception. == Usage First, include the ExceptionNotifiable mixin in whichever controller you want to generate error emails (typically ApplicationController): class ApplicationController < ActionController::Base include ExceptionNotifiable ... end Then, specify the email recipients in your environment: ExceptionNotifier.exception_recipients = %w(joe@schmoe.com bill@schmoe.com) And that's it! The defaults take care of the rest. == Configuration You can tweak other values to your liking, as well. In your environment file, just set any or all of the following values: # defaults to exception.notifier@default.com ExceptionNotifier.sender_address = %("Application Error" <app.error@myapp.com>) # defaults to "[ERROR] " ExceptionNotifier.email_prefix = "[APP] " Email notifications will only occur when the IP address is determined not to be local. You can specify certain addresses to always be local so that you'll get a detailed error instead of the generic error page. You do this in your controller (or even per-controller): consider_local "64.72.18.143", "14.17.21.25" You can specify subnet masks as well, so that all matching addresses are considered local: consider_local "64.72.18.143/24" The address "127.0.0.1" is always considered local. If you want to completely reset the list of all addresses (for instance, if you wanted "127.0.0.1" to NOT be considered local), you can simply do, somewhere in your controller: local_addresses.clear == Customization By default, the notification email includes four parts: request, session, environment, and backtrace (in that order). You can customize how each of those sections are rendered by placing a partial named for that part in your app/views/exception_notifier directory (e.g., _session.rhtml). Each partial has access to the following variables: * @controller: the controller that caused the error * @request: the current request object * @exception: the exception that was raised * @host: the name of the host that made the request * @backtrace: a sanitized version of the exception's backtrace * @rails_root: a sanitized version of RAILS_ROOT * @data: a hash of optional data values that were passed to the notifier * @sections: the array of sections to include in the email You can reorder the sections, or exclude sections completely, by altering the ExceptionNotifier.sections variable. You can even add new sections that describe application-specific data--just add the section's name to the list (whereever you'd like), and define the corresponding partial. Then, if your new section requires information that isn't available by default, make sure it is made available to the email using the exception_data macro: class ApplicationController < ActionController::Base ... protected exception_data :additional_data def additional_data { :document => @document, :person => @person } end ... end In the above case, @document and @person would be made available to the email renderer, allowing your new section(s) to access and display them. See the existing sections defined by the plugin for examples of how to write your own. == Advanced Customization By default, the email notifier will only notify on critical errors. For ActiveRecord::RecordNotFound and ActionController::UnknownAction, it will simply render the contents of your public/404.html file. Other exceptions will render public/500.html and will send the email notification. If you want to use different rules for the notification, you will need to implement your own rescue_action_in_public method. You can look at the default implementation in ExceptionNotifiable for an example of how to go about that. Copyright (c) 2005 Jamis Buck, released under the MIT license
This feature is coming soon. Sit tight!