I want detect when a user log in for first time. I know i can do this using Devise, but how do I implement it without Devise?
I know i can set some flag in session, but how can I use it to detect the first time log in? I have the current_user and the user table where I can add one more column such as login_count and I can increment it every time when the user login.
Is it a good idea or is there another way to get the first time login?