From fcaef4f8144221bb2b4b9f77525bd8b8767e226a Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 25 May 2021 18:02:56 -0400 Subject: Redirect from home page to current character path there is an active character --- app/controllers/home_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers') diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index be6be01..a224f7b 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -2,5 +2,6 @@ class HomeController < ApplicationController skip_before_action :authenticate_user! def index + redirect_to character_path(current_char) if current_char end end -- cgit v1.2.3