Hi, just installed the LoginEngine.

I keep getting this error when I log in:

undefined method `logged_in_at='

That is on line 22 of the user_controller:

def login
    return if generate_blank
    @user = User.new(params[:user]) # what does this achieve?
    if session[:user] = User.authenticate(params[:user][:login], params[:user][:password])
      session[:user].logged_in_at = Time.now
      session[:user].save
      flash[:notice] = 'Login successful'
      redirect_to_stored_or_default :action ="" 'home'
    else
      @login = params[:user][:login]
      flash.now[:warning] = 'Login unsuccessful'
    end
  end

It is logging me in. But tripping up because it can't find a logged_in method.

If I comment out that line, it works fine. Any ideas what is wrong? And whether commenting out this line will have consequences?

Thanks,

Steve
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to