Created
July 24, 2012 04:49
-
-
Save benmac3/3168098 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def handle_500_errors | |
yield | |
# we catch MissingTemplate errors so Applet Tab development errors are handled more cleanly. | |
# we could potentially do more here. | |
#rescue ActionView::MissingTemplate => error | |
# respond_to do |format| | |
# format.html {raise error} | |
# format.js {render :partial => "/service_errors/generic", :locals => {:message => "#{error.message}"}} | |
# end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment