This method is deprecated or moved on the latest stable version.
The last existing version (v3.0.9) is shown here.
root(options = {})
public
Creates a named route called “root” for matching the root level
request.
# File actionpack/lib/action_dispatch/routing/deprecated_mapper.rb, line 182
def root(options = {})
if options.is_a?(Symbol)
if source_route = @set.named_routes.routes[options]
options = source_route.defaults.merge({ :conditions => source_route.conditions })
end
end
named_route("root", '', options)
end