How to skip the need to confirm an email address update with devise?

The method you want to use is skip_reconfirmation! (note the ‘re’ in reconfirmation).

@user = User.find_by_email('[email protected]')
@user.email="[email protected]"
@user.skip_email_changed_notification!
@user.save!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)