Class Mack::Errors::UndefinedRoute
In: lib/mack/errors/errors.rb
Parent: StandardError

Raised when a route that matches the pattern of the incoming route AND the method of the request can‘t be found. It‘s important to note that BOTH the PATTERN and the HTTP METHOD HAVE to match for a route to be found!

Methods

new  

Public Class methods

Takes a request object.

[Source]

    # File lib/mack/errors/errors.rb, line 58
58:       def initialize(req)
59:         if req.is_a?(Mack::Request)
60:           super("#{req.path_info}; #{req.request_method}")
61:         else
62:           super(req)
63:         end
64:       end

[Validate]