Class: ErrorsController

Inherits:
ForestController show all
Defined in:
app/controllers/errors_controller.rb,
app/controllers/admin/errors_controller.rb

Instance Method Summary collapse

Methods inherited from ForestController

#after_sign_in_path_for

Instance Method Details

#internal_server_errorObject



14
15
16
17
# File 'app/controllers/errors_controller.rb', line 14

def internal_server_error
  @page_title = '500 - Error'
  render status: 500
end

#not_foundObject



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

def not_found
  @page_title = '404 - Not Found'
  render status: 404
end

#unprocessableObject



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

def unprocessable
  @page_title = '422 - Unprocessable'
  render status: 422
end