Notes posted by sebthemonsterRSS feed
If you want to have a params with the same value on all of the urls in this namespace, you can write this :
with a constant param :admin set to true
namespace :admin, :admin => true do resources :posts end
all of the urls like /admin/post have a param :admin with the value true.
It works also with :
scope 'admin', :admin => true do ... end match 'administration', :admin => true => 'posts#index' get 'administration', :admin => true