class ErrorsController

Public Instance Methods

show() click to toggle source
# File lib/generators/adminpanel/custom_errors/templates/errors_controller.rb, line 6
def show
  @exception  = env['action_dispatch.exception']
  @status     = ActionDispatch::ExceptionWrapper.new(env, @exception).status_code

  # @response   = ActionDispatch::ExceptionWrapper.rescue_responses[@exception.class.name]
  # response contains the error name ex: 404 => "not found"
  render status: @status
end