ruby on rails - undefined method `delay' for UserMailer:Class -



i getting following error while writing mail notification process asynchronously using delay method.

nomethoderror in samplecontroller#create  undefined method `delay' usermailer:class 

i have following code in controller.

usermailer.delay.idea_author_notification(self,nfication) 

i have installed delayed_job gem started delayed_job using jobs:work rake task.

shall need other changes using delay method executing mail related code in background ?

please me on asap..

thanks in advanced...

the method delay not existed any action mailer class. can not call method usermailer:class.

for can check methods mailer class in rails console. i.e
usermailer.methods
, check particular method existed or not, run following line.

usermailer.methods.include?(:delay)
above line returns false

or

if want use delayed jobs, please go through following link in github. you.

delayed_jobs_for_rails2.x.x


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -