Я использую гем delayed_job здесь: https://github.com/collectiveidea/delayed_job
У меня в обозревателе следующее:
UserMailer.delay.msg_notification(record)
В user_mailer.rb
class UserMailer < ActionMailer::Base
...
def msg_notification(record)
mail(
:to => "#{record.user.email}",
:subject => "Notification"
)
end
..
end
Но эта ошибка:
NoMethodError (undefined method `delay' for UserMailer:Class):
Есть идеи? спасибо