method
generate
v3.2.13 -
Show latest stable
- Class:
ActionDispatch::Routing::RouteSet::Generator
generate()public
No documentation available.
# File actionpack/lib/action_dispatch/routing/route_set.rb, line 531
def generate
path, params = @set.formatter.generate(:path_info, named_route, options, recall, PARAMETERIZE)
raise_routing_error unless path
return [path, params.keys] if @extras
[path, params]
rescue Journey::Router::RoutingError
raise_routing_error
end