From e611f9bea546daa7fd29c941166ad3781c05819a Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 25 Jan 2022 09:18:52 +0000 Subject: [PATCH] redirect logged in users to /logs from the index page --- app/controllers/start_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb index 259b9039d..8f380805b 100644 --- a/app/controllers/start_controller.rb +++ b/app/controllers/start_controller.rb @@ -1,3 +1,7 @@ class StartController < ApplicationController - def index; end + def index + if current_user + redirect_to(case_logs_path) + end + end end