diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index bba7940..ddaf237 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -1,7 +1,9 @@ class WelcomeController < ApplicationController def index if user_signed_in? - redirect_to root_path and return + redirect_to root_path + else + redirect_to new_user_session_path end end