lib/auth_bookmark.rb
def bookmarker_login_required
    if !logged_in?
      session[:return_to] = request.request_uri
      flash[:notice]="You must log in to use the bookmarker tool! "
      redirect_to  :action=>'login'
    end
  end
#Checks if user is logged in using the restful_authentication login helper
Checks if user is logged in using the restful_authentication login helper
Checks if user is logged in using the restful_authentication login helper
def bookmarker_login_required
    if !logged_in?
      session[:return_to] = request.request_uri
      flash[:notice]="You must log in to use the bookmarker tool! "
      redirect_to  :action=>'login'
    end
  end
def bookmarker_login_required if ! logged_in? session [ :return_to ] = request . request_uri flash [ :notice ] = "You must log in to use the bookmarker tool! " redirect_to :action => 'login' end end
Checks if user is logged in using the restful_authentication login helper
Checks if user is logged in using the restful_authentication login helper