Initial HomeController for Management
This commit is contained in:
parent
50cd123935
commit
e05234ecb3
|
@ -0,0 +1,6 @@
|
||||||
|
module Management
|
||||||
|
class HomeController < ManagementController
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
module Management
|
||||||
|
class ManagementController < ::ApplicationController
|
||||||
|
layout 'management'
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1 @@
|
||||||
|
p Hello
|
|
@ -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".
|
||||||
|
|
Loading…
Reference in New Issue