To remove “sections” and “pages” from all routes for sectionsand pages, you can use:
resources :sections, path: '' do
resources :pages, path: ''
end
: . , example, , routes.rb :
resources :sections, path: '' do
resources :pages, path: ''
end
resources :examples
root 'home#index'
http://example.com/examples "" section, examples#index, http://example.com/ sections#index, home#index, , :
resources :examples
root 'home#index'
resources :sections, path: '' do
resources :pages, path: ''
end