aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-11-03 12:44:18 -0500
committerRaghuram Subramani <raghus2247@gmail.com>2025-11-03 12:44:37 -0500
commita90739742cf61d4cd9ffa4996311475a06193fe1 (patch)
treeaf2306c94ccd3558a8106c38f973c1aca162b646
parent106f0bfb6ac1a7c8064d384026e4006f079db114 (diff)
{controller,view}: home->dashboard
-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.rb2
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