method
generate
rails latest stable - Class:
ActionDispatch::Routing::RouteSet::Generator
generate()public
Generates a path from routes, returns [path, params]. If no route is generated the formatter will raise ActionController::UrlGenerationError