From e05234ecb38fc8123b67ddde81c4e5fc1d920d9f Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 17 Sep 2014 12:43:17 +0300 Subject: [PATCH] Initial HomeController for Management --- app/controllers/management/home_controller.rb | 6 ++++++ app/controllers/management/management_controller.rb | 5 +++++ app/views/management/home/index.html.slim | 1 + config/routes.rb | 4 ++++ 4 files changed, 16 insertions(+) create mode 100644 app/controllers/management/home_controller.rb create mode 100644 app/controllers/management/management_controller.rb create mode 100644 app/views/management/home/index.html.slim 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".