Exception Textable plugin
Plugin details
Documentation
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 documentationEdit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago

