Class: ErrorsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/errors_controller.rb

Instance Method Summary collapse

Instance Method Details

#internalObject


10
11
12
# File 'app/controllers/errors_controller.rb', line 10

def internal
  render status: 500
end

#not_foundObject


2
3
4
# File 'app/controllers/errors_controller.rb', line 2

def not_found
  render status: 404
end

#unprocessableObject


6
7
8
# File 'app/controllers/errors_controller.rb', line 6

def unprocessable
  render status: 422
end