Last active
March 22, 2018 14:54
-
-
Save anoobbava/9ed5b57e3d8bb75c77715a7057cd86b7 to your computer and use it in GitHub Desktop.
custom rails pages blog
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
# encoding: utf-8 | |
class ErrorsController < ApplicationController | |
skip_before_action :authenticate_user! | |
def not_found | |
respond_to do |format| | |
format.html { render status: 404 } | |
end | |
end | |
def unacceptable | |
respond_to do |format| | |
format.html { render status: 422 } | |
end | |
end | |
def internal_error | |
respond_to do |format| | |
format.html { render status: 500 } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment