Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 812245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:10:23+00:00 2026-05-15T01:10:23+00:00

I am using the Authlogic gem for authentication and most of it seems to

  • 0

I am using the Authlogicgem for authentication and most of it seems to be working great. Authlogic provides several columns that you can add to your Users table (for example) that it knows to fill in if they are present. i.e. login_count, current_login_ip, last_request_at and last_login_at.

All seem to be working fine with the exception of the last_login_at field which is null for each user.

Is there anything specific that could be causing this perhaps having to do with the user sessions, etc? I can post code if needed but wasn’t sure what would relate to this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:10:24+00:00Added an answer on May 15, 2026 at 1:10 am

    My guess is that you are missing the current_login_at column, without it last_login_at will not work.

    see: here

    if record.respond_to?(:current_login_at)
       record.last_login_at = record.current_login_at if record.respond_to?(:last_login_at)
       record.current_login_at = klass.default_timezone == :utc ? Time.now.utc : Time.now
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the authlogic gem for authentication. I have followed the steps at:
I am using Authlogic for my user authentication, and would like yo add roles
I've been having trouble using cucumber and webrat to test authlogic-openid authentication in a
I think I am missing something while using the Authlogic gem w/ Rails. To
I'm trying to get Facebook logins working on my app using Rails, Authlogic, and
I am using the authlogic gem with Ruby on Rails, and I have been
I'm using Authlogic for authentication in my app, using the standard User and UserSession
I have auto registration working with authlogic using gaizka's version of authlogic_openid which I
I have an application that uses the Authlogic gem and needs the functionality of
I am using the Authlogic gem in my application, and I need users to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.