ruby on rails - When does Devise actually send reconfirmation emails? -


i'm trying add email confirmation model called "project" in rails app: users should able set email address project, not saved until click confirmation link sent email address provided.

although have no need authentication features, thought devise gem might useful. hoping use :reconfirmable implement feature: when user tries save email project, instead saved unconfirmed_email column until confirm.

it appears, partly, working -- database updated correctly, token generated, "confirmation_sent_at" field set. no email template rendered (and no email sent). looking @ code path in lib/devise/models.rb can see how, before email field saved to, method called intercepts save , instead saves unconfirmed_email. email send triggered? have activate it?

assuming have correctly configured devise use :confirmable feature , configured email (as described in answer). should simple calling this:

user.send_confirmation_instructions # user 1 of devise users 

at least, making send_confirmation_instructions call should show email sending in rails log. if case don't ever receive email have email configured incorrectly.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -