Initial HomeController for Management

This commit is contained in:
Petko Bordjukov 2014-09-17 12:43:17 +03:00
parent 50cd123935
commit e05234ecb3
4 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,6 @@
module Management
class HomeController < ManagementController
def index
end
end
end

View File

@ -0,0 +1,5 @@
module Management
class ManagementController < ::ApplicationController
layout 'management'
end
end

View File

@ -0,0 +1 @@
p Hello

View File

@ -4,6 +4,10 @@ Rails.application.routes.draw do
devise_for :users, controllers: {registrations: 'registrations', sessions: 'sessions'} devise_for :users, controllers: {registrations: 'registrations', sessions: 'sessions'}
scope :management, module: :management do
get '/', to: 'home#index'
end
root 'home#index' root 'home#index'
# The priority is based upon order of creation: first created -> highest priority. # The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes". # See how all your routes lay out with "rake routes".