My application is using Devise, and is sending out confirmation emails properly, and confirming users properly as well after they click on the confirmation link. I would also like to send a second email AFTER the user is confirmed.
There is a lot of advice on how to delay confirmation, or 2-step confirmation, but nothing on what I'm looking for (that I can find).
The Devise::Module::Confirmable documentation tells me that the method to use is confirm!, but I am not sure how to do this. Any ideas?
Rails Devise: after_confirmation
Simply define an after_save callback that checks to see if a user was confirmed, and if so, sends the email.
If you want to save a few CPU cycles, you could override the Devise ConfirmationsController with something like this: