method

generate

generate()
public

Generates a path from routes, returns [path, params]. If no route is generated the formatter will raise ActionController::UrlGenerationError