app/controllers/application_controller.rb
# redirects to user show page based on type of user
redirects to user show page based on type of user
redirects to user show page based on type of user
def redirect_if_logged_in(message)
    if owner?
      redirect_to dance_studio_path(current_user), warning: message if logged_in?
    else
      redirect_to dancer_path(current_user), warning: message if logged_in?
    end
  end
def redirect_if_logged_in ( message ) if owner? redirect_to dance_studio_path ( current_user ) , warning : message if logged_in? else redirect_to dancer_path ( current_user ) , warning : message if logged_in? end end
redirects to user show page based on type of user
redirects to user show page based on type of user
message
<not_specific>