I have a customer devise controller and i wan to set my sign up action to update a user status to online when the user signs in and off line when the users logout. I have
def signin
super
end
I want to update the users status attribute to online on login and offline on logout. Pls any help here
You may be missing attr_accesible declaration for the “status” attribute of User table?