From 381990259382d9f443d980a243ed2949c3305668 Mon Sep 17 00:00:00 2001 From: krillan Date: Mon, 13 Jan 2025 21:15:50 +0300 Subject: [PATCH] 6#rename-main-to-home --- app/controllers/{main_controller.rb => home_controller.rb} | 2 +- app/views/{main => home}/_list.html.erb | 0 app/views/{main => home}/index.html.erb | 0 config/routes.rb | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename app/controllers/{main_controller.rb => home_controller.rb} (78%) rename app/views/{main => home}/_list.html.erb (100%) rename app/views/{main => home}/index.html.erb (100%) diff --git a/app/controllers/main_controller.rb b/app/controllers/home_controller.rb similarity index 78% rename from app/controllers/main_controller.rb rename to app/controllers/home_controller.rb index 641492f..18c54ab 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,4 +1,4 @@ -class MainController < ApplicationController +class HomeController < ApplicationController allow_unauthenticated_access def index diff --git a/app/views/main/_list.html.erb b/app/views/home/_list.html.erb similarity index 100% rename from app/views/main/_list.html.erb rename to app/views/home/_list.html.erb diff --git a/app/views/main/index.html.erb b/app/views/home/index.html.erb similarity index 100% rename from app/views/main/index.html.erb rename to app/views/home/index.html.erb diff --git a/config/routes.rb b/config/routes.rb index 01088a8..63344da 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,7 +9,7 @@ get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker get "manifest" => "rails/pwa#manifest", as: :pwa_manifest - root "main#index" + root "home#index" resources :podcasts # auth