diff options
| -rw-r--r-- | app/controllers/dashboard_controller.rb (renamed from app/controllers/home_controller.rb) | 2 | ||||
| -rw-r--r-- | app/views/dashboard/index.html.haml (renamed from app/views/home/index.html.haml) | 0 | ||||
| -rw-r--r-- | config/routes.rb | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/dashboard_controller.rb index 57a4e22..26bbb27 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -1,4 +1,4 @@ -class HomeController < ApplicationController +class DashboardController < ApplicationController def index @visit_count = Visit.where(created_at: Date.today.all_day).count diff --git a/app/views/home/index.html.haml b/app/views/dashboard/index.html.haml index c441a86..c441a86 100644 --- a/app/views/home/index.html.haml +++ b/app/views/dashboard/index.html.haml diff --git a/config/routes.rb b/config/routes.rb index 2786d36..1fa1789 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,7 +11,7 @@ Rails.application.routes.draw do # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker # Defines the root path route ("/") - root "home#index" + root "dashboard#index" resources :clients, only: [ :new, :edit, :update ] do post 'create', on: :collection |
