Refactor admin interface under namespace

This commit is contained in:
Martin Lensment 2014-09-05 10:36:34 +03:00
parent 0c3105a159
commit a3b04786cf
7 changed files with 18 additions and 18 deletions

View file

@ -5,13 +5,15 @@ Rails.application.routes.draw do
get 'error/:command', to: 'errors#error', defaults: { format: :xml }
end
resources :setting_groups
namespace(:admin) do
resources :setting_groups
end
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
root 'setting_groups#index'
root 'admin/setting_groups#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'