app/controllers/application_controller.rb
# Customizes path after login to show welcome_video if first login
Customizes path after login to show welcome_video if first login
Customizes path after login to show welcome_video if first login
def after_sign_in_path_for(user)
    if user.welcome_video_seen?
      root_path
    else
      welcome_video_user_path
    end
  end
def after_sign_in_path_for ( user ) if user . welcome_video_seen? root_path else welcome_video_user_path end end
Customizes path after login to show welcome_video if first login
Customizes path after login to show welcome_video if first login
user
<not_specific>