diff --git a/app/controllers/management/home_controller.rb b/app/controllers/management/home_controller.rb new file mode 100644 index 0000000..0d0aee3 --- /dev/null +++ b/app/controllers/management/home_controller.rb @@ -0,0 +1,6 @@ +module Management + class HomeController < ManagementController + def index + end + end +end diff --git a/app/controllers/management/management_controller.rb b/app/controllers/management/management_controller.rb new file mode 100644 index 0000000..1b7ff3d --- /dev/null +++ b/app/controllers/management/management_controller.rb @@ -0,0 +1,5 @@ +module Management + class ManagementController < ::ApplicationController + layout 'management' + end +end diff --git a/app/views/management/home/index.html.slim b/app/views/management/home/index.html.slim new file mode 100644 index 0000000..3603360 --- /dev/null +++ b/app/views/management/home/index.html.slim @@ -0,0 +1 @@ +p Hello diff --git a/config/routes.rb b/config/routes.rb index 13558cd..7cef799 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,6 +4,10 @@ Rails.application.routes.draw do devise_for :users, controllers: {registrations: 'registrations', sessions: 'sessions'} + scope :management, module: :management do + get '/', to: 'home#index' + end + root 'home#index' # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes".