Created
September 8, 2014 07:54
-
-
Save anbublacky/c8428e7416e7aa9f21f1 to your computer and use it in GitHub Desktop.
error handling
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
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