I'm upgrading rais 2.3.2 project to rails 3
Error:
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 is my model:
class MailerFormError < ActionMailer::Base
It's no method 'deliver_sent' in model and Actionmailer::Base too :(
code with it in controller:
@msg = {}
@msg["errors"] = @lead.errors
@msg["params"] = params
MailerFormError.deliver_sent(@msg)
Actionmailer version: actionmailer (3.2.11)
How can I solve this problem?