Lipsiasoft / exception-notifier

Exception Notifier Plugin for Rails, that send email notification and generate error pages that you can use with your controller Layout.

This URL has Read+Write access

name age message
file .gitignore Mon Feb 23 03:51:25 -0800 2009 first commit [Davide D'Agostino]
file MIT-LICENSE Mon Feb 23 03:51:25 -0800 2009 first commit [Davide D'Agostino]
file README Mon Feb 23 04:01:59 -0800 2009 Update the name of the plugin [Davide D'Agostino]
file Rakefile Wed Mar 04 03:40:50 -0800 2009 Added missing version in rakefile [Davide D'Agostino]
file exception-notifier.gemspec Wed Mar 04 03:39:27 -0800 2009 removed unnecessary part from 500 error page te... [Emanuele Barban]
directory generators/ Wed Mar 04 03:39:27 -0800 2009 removed unnecessary part from 500 error page te... [Emanuele Barban]
file init.rb Mon Feb 23 03:51:25 -0800 2009 first commit [Davide D'Agostino]
directory lib/ Mon Feb 23 05:49:00 -0800 2009 Better template for Redmine [Davide D'Agostino]
directory test/ Mon Feb 23 03:51:25 -0800 2009 first commit [Davide D'Agostino]
README
ExceptionNotifier
=================

This plugin are raised when an exception fire up in controllers.
Now you can personalize exception and simplify the layout using templates
in app/views/exception
when an exception is raised it try to send an email, and for send an email 
you need to configure in enviroment.

For test layouts and mailing do this:

Edit enviroments/development.rb

config.action_controller.consider_all_requests_local = false

Then in your browser open 192.168.1.3 where 192.168.1.3 is your lan ip.

Remember that if you use 127.0.0.1 Rails don't raise "production" errors.

Installation
============

Rails::Initializer.run do |config|
  config.gem 'Lipsiasoft-exception-notifier', :lib => 'exception_notifier', :source => 'http://gems.github.com'
end

Example
=======

script/generate exception_notifier [--haml-template]

Personalize yours app/views/exceptions/ templates

Remember that they use the layout of the controller where the exception is raised

Then in /config/initializers/exception_notifier.rb 

Lipsiadmin::Mailer::ExceptionNotifier.sender_address       = %("Exception Notifier" <server1@lipsiasoft.com>)
Lipsiadmin::Mailer::ExceptionNotifier.recipients_addresses = %(info@lipsiasoft.com)
Lipsiadmin::Mailer::ExceptionNotifier.email_prefix         = "[Your Progect]"


Redmine
=======

This plugins is useful for redmine, if you have set the mail handler
http://www.redmine.org/wiki/redmine/RedmineReceivingEmails

you need to set the inizializers/exception_notifier.rb like this

Lipsiadmin::Mailer::ExceptionNotifier.sender_address       = %("Exception Notifier" <server1@lipsiasoft.com>)
Lipsiadmin::Mailer::ExceptionNotifier.recipients_addresses = %(info@lipsiasoft.com)
Lipsiadmin::Mailer::ExceptionNotifier.email_prefix         = "[Your Project]"
Lipsiadmin::Mailer::ExceptionNotifier.extra_options        = { :project => "your-project-in-redmine", :tracker => "Bug", 
:priority => "Urgent" }

Copyright (c) 2009 Lipsiasoft s.r.l., released under the MIT license