app/controllers/application_controller.rb
#Redirect to welcome/home if we dont have a user logged in
Redirect to welcome/home if we dont have a user logged in
Redirect to welcome / home if we dont have a user logged in
def user_not_authenticated?
        if !logged_in?
            redirect_to root_path
            return true
        end
        return false
    end
def user_not_authenticated? if ! logged_in? redirect_to root_path return true end return false end
Redirect to welcome/home if we dont have a user logged in
Redirect to welcome / home if we dont have a user logged in