Skip to content

Instantly share code, notes, and snippets.

@kares
Created September 6, 2009 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kares/181762 to your computer and use it in GitHub Desktop.
Save kares/181762 to your computer and use it in GitHub Desktop.
request_exception_handler plugin usage sample
class ApplicationController < ActionController::Base
rescue_from 'REXML::ParseException' do |exception|
render :text => exception.to_s, :status => 422
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment