Tuesday, 16 December 2014

Devise Confirmation - Quick tip :

We all are mainly using Devise Library for user authentication purpose, as you may experienced a scenario where user has to confirm account by mail confirmation link. It was a real burden for me :) as i had to set up Smtp Gmail settings in my local development environment, To avoid this i used a quick tip by updating particular user confirmed_at attribute. Code snippet for it is as follows.

User.last.update_attributes(:confirmed_at => Time.now)