class ErrorsController
Public Instance Methods
resque404(exception = nil)
click to toggle source
# File lib/tasks/controllers/errors_controller.rb, line 8 def resque404(exception = nil) if exception logger.info "Rendering 404 with exception: #{exception.message}" end render template: "notee/errors/not_found", status: 404 end
resque500(exception = nil)
click to toggle source
# File lib/tasks/controllers/errors_controller.rb, line 15 def resque500(exception = nil) if exception logger.info "Rendering 500 with exception: #{exception.message}" end render template: "notee/errors/internal_server_error", status: 500 end
show()
click to toggle source
# File lib/tasks/controllers/errors_controller.rb, line 22 def show; raise env["action_dispatch.exception"]; end