defaults(defaults = {})
Instance Public methods
Allows you to set default parameters for a route, such as this:
defaults id: 'home' do match 'scoped_pages/(:id)', to: 'pages#show' end
Using this, the :id
parameter here will default to
'home'.
Please login to continue.