0
我想使用Resque ::梅勒我NotificationMailerResque郵件systemSTackerror深
class NotificationsMailer < MandrillMailer::TemplateMailer
include Resque::Mailer
default from: '[email protected]', from_name: 'Alex'
def create_client to
mandrill_mail template: 'beta-sign-up-confirmation',
subject: 'create a client',
to: to,
inline_css: true
end
end
當我打電話提供
NotificationsMailer.create_client('[email protected]').deliver
我收到以下錯誤
SystemStackError: stack level too deep
from /Users/myname/.rvm/src/rvm/gems/ruby-2.2.2/gems/resque_mailer-2.2.7/lib/resque_mailer.rb:39:in `method_missing'