search for: authenticate_with

Displaying 1 result from an estimated 1 matches for "authenticate_with".

Did you mean: authenticated_with
2010 Oct 30
3
Authlogic not active
...n) @current_user_session = Authentication.find end def current_user return @current_user if defined?(@current_user) @current_user = current_user_session && current_user_session.user end authentication model class Authentication < Authlogic::Session::Base authenticate_with User end user model class User < ActiveRecord::Base acts_as_authentic do |c| c.session_class = Authentication c.login_field = :login c.ignore_blank_passwords = false end end routes in routes.rb map.root :controller => "site", :action => "index" m...