class ActionDispatch::Journey::Router
def recognize(rails_req)
def recognize(rails_req) find_routes(rails_req) do |match, parameters, route| unless route.path.anchored rails_req.script_name = match.to_s rails_req.path_info = match.post_match rails_req.path_info = "/" + rails_req.path_info unless rails_req.path_info.start_with? "/" end parameters = route.defaults.merge parameters yield(route, parameters) end end