app/controllers/application_controller.rb
# use this helper method to avoid showing welcome, login, or signup page to a user that's already logged in
use this helper method to avoid showing welcome, login, or signup page to a user that's already logged in
use this helper method to avoid showing welcome login or signup page to a user that ' s already logged in
def redirect_if_logged_in
      if logged_in?
        redirect "/users/#{current_user.id}"
      end
    end
def redirect_if_logged_in if logged_in? redirect "/users/#{current_user.id}" end end
use this helper method to avoid showing welcome, login, or signup page to a user that's already logged in
use this helper method to avoid showing welcome login or signup page to a user that ' s already logged in