Exception Textable plugin

Plugin details

This plugin sends notifications as SMS's or text messages to your cell phone when errors occur in a Rails application.

Websitehttp://pinds.com/articles/2006/07/13/release-exceptiontextable-rails-plugin Repositoryhttp://svn.pinds.com/rails/plugins/exception_textable/ Author Lars Pind Tags exception, sms LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://svn.pinds.com/rails/plugins/exception_textable/

Include the ExceptionTextable in your controller, normally ApplicationController:

    class ApplicationController < ActionController::Base
      include ExceptionTextable
      ...
    end


Then go to your production.rb environment file and specify the gateway and recipients:

    config.after_initialize do
      ExceptionTexter.recipients = [[:email, "2123335555@tmomail.net"]]
    end


The recipients variable is an array of two-element arrays, where the first element is the gateway (:email, :clickatell, :test) and the second is the cell number in the format needed by the gateway.

You can also do this in your general environment.rb file, or in other environments, but getting SMSes for errors in your development or test environments seems like a waste of money.

See the section on gateways below.

The standard message is:

    [ERROR] Controller#action (RuntimeError) Exception message - data


See the Customization section below for details on the "data" part and how to customize the text.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago