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.
Comments
Post a Comment