class ActionDispatch::Routing::RouteSet::Generator

def generate

If no route is generated the formatter will raise ActionController::UrlGenerationError
Generates a path from routes, returns [path, params].
def generate
  @set.formatter.generate(:path_info, named_route, options, recall, PARAMETERIZE)
end