instance method
match_root_route
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
match_root_route(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1936
def match_root_route(options)
name = has_named_route?(name_for_action(:root, nil)) ? nil : :root
args = ["/", { as: name, via: :get }.merge!(options)]
match(*args)
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1936
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources