Fixed loading of error pages (#310)

* <Fixed loading of error pages>

* <Remove not_found from application folder>
This commit is contained in:
John Ma
2018-10-23 13:10:54 -04:00
committed by Jesus Federico
parent b3a2d9e39e
commit b8785a3bf8
3 changed files with 45 additions and 26 deletions

View File

@ -18,14 +18,14 @@
class ErrorsController < ApplicationController
def not_found
render status: 404
render status: 404, formats: :html
end
def unprocessable
render status: 422
render status: 422, formats: :html
end
def internal_error
render status: 500
render status: 500, formats: :html
end
end