Firebug RJS Errors
A Rails plugin to override javascript debugging alert()s with the Firebug console.
Overview
RJS templates in Rails automatically wrap the generated Javascript with
an exception handler that pops up an alert() box when an
error occurs.
This plugin overrides that behavior to instead log Javascript errors to
the Firebug console with console.log().
Download
Subversion Repository:
$ http://svn.maintainable.com/public/rails/plugins/firebug_rjs_errors
To install for use in your Rails project:
$ ./script/plugin install \ http://svn.maintainable.com/public/rails/plugins/firebug_rjs_errors
Usage
Once installed, all RJS errors will be automatically logged to the
Firebug console instead of an alert() box.
To turn off logging for production use, add this line to
environments/production.rb:
ActionView::Base.debug = false
