Note that there are some explanatory texts on larger screens.

plurals
  1. PONoMethodError with delayed_job (collectiveidea gem)
    text
    copied!<p><strong>UPDATE: There's been a patch for this issue: <a href="https://github.com/collectiveidea/delayed_job/commit/023444424166ba2ce011bfe2d47954e79edf6798" rel="noreferrer">https://github.com/collectiveidea/delayed_job/commit/023444424166ba2ce011bfe2d47954e79edf6798</a></strong></p> <p><strong>UPDATE 2: For anyone running into this issue on Heroku specifically, I've found downgrading to Rake 0.8.7 and using Delayed Job version 2.1.4 works, while delayed job v3 does not (though with the patch it does work on local). This is on the Bamboo-mri-1.9.2 stack.</strong></p> <p>I am trying to implement delayed_job on a rails 3.1.0 app locally. I ran the migration and installed the gem files:</p> <pre><code>gem 'delayed_job' gem 'delayed_job_active_record' </code></pre> <p>Following the documentation on the collectiveidea github (<a href="https://github.com/collectiveidea/delayed_job" rel="noreferrer">https://github.com/collectiveidea/delayed_job</a>). I am making the delay call from my controller as follows:</p> <pre><code>EventMailer.delay.event_message_email(current_user, @event_message) </code></pre> <p>This causes the task to be added to the job table but when I run rake jobs:work it logs the following error:</p> <pre><code>Class#event_message_email failed with NoMethodError: undefined method `event_message_email' for Class:Class - 6 failed attempts </code></pre> <p>I've looked at the the other delayed_job NoMethod error questions on SO but none address this specific error or provide a solution to it. The collectiveidea page mentions that this format without the deliver method call is a hack for how Rails 3 mailers are setup, so I'm wondering if perhaps this documentation may be some how outdated, and if there is a new way to call mailer methods?</p> <p>Update: also calling the mailer method without delay works fine, and I am running it on the default rails server so the issue with Thin mentioned in the collectiveidea faq does not apply. Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload