app/controllers/application_controller.rb
#gives access to methods in the views
gives access to methods in the views
gives access to methods in the views
def redirect_if_not_logged_in
        if !logged_in?
            flash[:message] = "Please log into your account to view that page."
            redirect_to root_path
        end 
    end
def redirect_if_not_logged_in if ! logged_in? flash [ :message ] = "Please log into your account to view that page." redirect_to root_path end end
gives access to methods in the views
gives access to methods in the views