How to send two different emails for devise confirmable and devise reconfirmable?
问题 Both devise confirmable (email confirmation when user signs up) and reconfirmable (email confirmation when user changes email) modules send the same email template, "confirmation_instructions". How do I get it so that a different email template is used for confirmable? 回答1: You can override options[:template_name] in the #confirmation_instructions method of your mailer. class AuthMailer < Devise::Mailer helper :application include Devise::Controllers::UrlHelpers default template_path: 'devise