method

root

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

linjunpop ยท Mar 28, 2012

Code

root :to => 'projects#index', :as => 'foobar'

will generate a helper

foobar_path