method
root
v3.0.0 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Base
root(options = {})public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 229
def root(options = {})
match '/', options.reverse_merge(:as => :root)
end 1Note
:as option
Code
root :to => 'projects#index', :as => 'foobar'
will generate a helper
foobar_path