Forum: Ruby on Rails Rails 3 - Delayed_Job (collectiveidea), trying to Delay Mailers - Error: NoMethodError (undefined me

4efd15a59825388ea3382ec4d482a7d8?d=identicon&s=25 CuriousNewbie (Guest)
on 2010-12-11 20:54
(Received via mailing list)
Hello, I have the following in an observer:


In user_mailer.rb
class UserMailer < ActionMailer::Base
def msg_notification(record)
          :to => "#{}",
          :subject => "Notification"

But this errors with:

NoMethodError (undefined method `delay' for UserMailer:Class):

Any ideas? thanks
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.