From eb729e4fa4cbfa21399170def2b018689bdc78c7 Mon Sep 17 00:00:00 2001 From: James Mead Date: Fri, 20 Sep 2024 12:35:48 +0100 Subject: [PATCH] Use simple Svelte template for home page --- app/controllers/home_controller.rb | 3 +++ app/views/home/show.html.svelte | 1 + config/routes.rb | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 app/controllers/home_controller.rb create mode 100644 app/views/home/show.html.svelte diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb new file mode 100644 index 0000000..dd6117f --- /dev/null +++ b/app/controllers/home_controller.rb @@ -0,0 +1,3 @@ +class HomeController < ApplicationController + def show; end +end diff --git a/app/views/home/show.html.svelte b/app/views/home/show.html.svelte new file mode 100644 index 0000000..33e1f1d --- /dev/null +++ b/app/views/home/show.html.svelte @@ -0,0 +1 @@ +

show.html.svelte

diff --git a/config/routes.rb b/config/routes.rb index 33c9639..a5a8830 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,5 +10,5 @@ get "manifest" => "rails/pwa#manifest", as: :pwa_manifest # Defines the root path route ("/") - # root "posts#index" + root "home#show" end