diff options
author | David Gay <david@davidgay.org> | 2021-05-25 18:02:56 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-25 18:02:56 -0400 |
commit | fcaef4f8144221bb2b4b9f77525bd8b8767e226a (patch) | |
tree | b0acb5b9aaa13709c2d15940b7eeb104ed5a4f50 | |
parent | 6b245970aef4ad305356d1a5f5e6ccfbcc494d80 (diff) |
Redirect from home page to current character path there is an active character
-rw-r--r-- | app/controllers/home_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |