Skip to content

Instantly share code, notes, and snippets.

@anbublacky
Created September 8, 2014 07:54
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 anbublacky/c8428e7416e7aa9f21f1 to your computer and use it in GitHub Desktop.
Save anbublacky/c8428e7416e7aa9f21f1 to your computer and use it in GitHub Desktop.
error handling
class ErrorsController < ApplicationController
def not_found
render :status => 404, :formats => [:html]
end
def server_error
render :status => 500, :formats => [:html]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment