I have an existing application where a user can log in. It does not fix the work of the tool. I wanted to create a facility that counts user login efforts and as far as such increments, I know about active records and growth As I have kept it down.
 DEF increment_login_count! Update_attribute (: login_count, login_count + 1) end   Can anybody argue how to make this argument I wanted to start with a controller imagination and to work with it but I'm a bit Unsure
try it
  def increment_login_count increments! : Login_count end   And whenever a new session is created for the user, you can call this method
You can reference for more information.
No comments:
Post a Comment