Answer the question
In order to leave comments, you need to log in
Call ActionMailer mailer method by name?
Hello, I've run into a problem.
Can't call class method like this:
UserMailer.method(:mail_method).call(user.id).deliver
mail_method method not defined for Class
UserMailer.mail_method(user.id).deliver
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question