class Yokunai::ErrorsController
Public Instance Methods
not_found()
click to toggle source
# File lib/yokunai/errors_controller.rb, line 4 def not_found respond(code: 404, body: "Error 404: Could not locate resource.") end
unsupported_method()
click to toggle source
# File lib/yokunai/errors_controller.rb, line 8 def unsupported_method respond(code: 405, body: "Error 405: Unsupported HTTP method.") end