Rails.application.routes.draw do namespace :admin do root 'home#index' resources :home get 'all_page/publish' get 'all_page/unpublish' resources :all_page resources :article end devise_for :admins root 'site#index' resources :site # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end