Send an actionmailer email upon user registration in devise rails 3 application
问题 I'm trying to send an email upon user registration in a rails 3 application that is using the devise gem. Every time I try to the send the email I get the following error: NoMethodError in Devise::RegistrationsController#create undefined method `welcome_email' for UserMailer:Class My app/model/user.rb has the following code... after_create :send_welcome_email def send_welcome_email UserMailer.welcome_email(self).deliver end My app/mailers/user_mailer.rb has the following code... class