Skip to content

Instantly share code, notes, and snippets.

@benmac3
Created July 24, 2012 04:49
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 benmac3/3168098 to your computer and use it in GitHub Desktop.
Save benmac3/3168098 to your computer and use it in GitHub Desktop.
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