Admin interface #6
6
app/controllers/management/home_controller.rb
Normal file
6
app/controllers/management/home_controller.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
module Management
|
||||||
|
class HomeController < ManagementController
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
5
app/controllers/management/management_controller.rb
Normal file
5
app/controllers/management/management_controller.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module Management
|
||||||
|
class ManagementController < ::ApplicationController
|
||||||
|
layout 'management'
|
||||||
|
end
|
||||||
|
end
|
1
app/views/management/home/index.html.slim
Normal file
1
app/views/management/home/index.html.slim
Normal file
@ -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
Block a user