我正在将 rais 2.3.2 项目升级到 rails 3
错误:
undefined method `deliver_sent' for MailerFormError:Class
Application Trace | Framework Trace | Full Trace
app/controllers/leads_controller.rb:72:in `block in create'
app/controllers/leads_controller.rb:56:in `create'
MailerFormError 是我的模型:
class MailerFormError < ActionMailer::Base
在模型和 Actionmailer::Base 中也没有方法 'deliver_sent' :(
在控制器中使用它的代码:
@msg = {}
@msg["errors"] = @lead.errors
@msg["params"] = params
MailerFormError.deliver_sent(@msg)
Actionmailer 版本:actionmailer (3.2.11)
我怎么解决这个问题?