title: How to detect First time login in rails app
body: <p>I want <strong>detect when a user log in for first time</strong>. I know i can do this using <code>Devise</code>, but how do I implement it without <code>Devise</code>? </p>
  
  <p>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 <code>current_user</code>  and the <code>user</code> table where I can add one more column such as <code>login_count</code> and I can  increment it every time when the user login. </p>
  
  <p>Is it a good idea or is there another way to get the first time login?</p>