Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6976185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:27:51+00:00 2026-05-27T17:27:51+00:00

UPDATE: There’s been a patch for this issue: https://github.com/collectiveidea/delayed_job/commit/023444424166ba2ce011bfe2d47954e79edf6798 UPDATE 2: For anyone running

  • 0

UPDATE: There’s been a patch for this issue: https://github.com/collectiveidea/delayed_job/commit/023444424166ba2ce011bfe2d47954e79edf6798

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.

I am trying to implement delayed_job on a rails 3.1.0 app locally. I ran the migration and
installed the gem files:

gem 'delayed_job'
gem 'delayed_job_active_record'

Following the documentation on the collectiveidea github (https://github.com/collectiveidea/delayed_job). I am making the delay call from my controller as follows:

EventMailer.delay.event_message_email(current_user, @event_message)

This causes the task to be added to the job table but when I run rake jobs:work it logs the following error:

Class#event_message_email failed with NoMethodError: undefined method `event_message_email' for Class:Class - 6 failed attempts

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?

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:27:51+00:00Added an answer on May 27, 2026 at 5:27 pm

    I fixed this problem by switching to delayed_job (DJ) version 2.1.2.

    I am using:
    rvm
    ruby 1.8.7 (2010-01-10 patchlevel 249)
    rails 3.0.9

    Gemfile:
    gem “delayed_job”, ‘2.1.2’

    Before this I tried to use the latest version of delayed_job:
    gem “delayed_job”, :git => ‘git://github.com/collectiveidea/delayed_job.git’
    for me it was v3.0.0.pre

    But:
    rails generate delayed_job
    didn’t generate migrations file. I created it manually. Then after ‘rake db:migrate’ I’ve got the table for storing delayed_job queue. And then, when I was thinking that all must be worked correctly, I’ve got the same error.

    When I tried to find the source of this error, in ‘delayed_jobs’ table I have found that delayed_job’s tasks are incorrectly saved. Here is snippet from field ‘handler’ in ‘delayed_jobs’ table:

    --- !ruby/object:Delayed::PerformableMailer 
    object: !ruby/class Notifier
    

    As I know, delayed_job gets all tasks through Struct class, so the task should be saved with ‘!ruby/struct’ header isntead of ‘!ruby/object’
    Here is the snippet of correctly saved task:

    --- !ruby/struct:Delayed::PerformableMailer 
    object: !ruby/class Notifier
    

    To check this I stopped delaed_job process in console. Then I called some method to put DJ’s task to DB:

    Notifier.delay.some_email(current_user, @event_message)
    

    Then I manually replaced ‘!ruby/object’ by ‘!ruby/struct’ in ‘handler’ field.
    Then I started DJ ‘rake jobs:work’, it said me that mail was succesfully sent.

    But:
    – this task wasn’t be deleted from DJ’s table
    – and mail doesn’t get to the recipient

    So I’ve decided that it is a bug in new version of delayed_job. I switched to DJ ‘2.1.2’ and it’s worked for me fine.

    P.S.: Sorry for my English 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: This question is a duplicate of Are there any programming languages targeting PHP,
UPDATE Guid.TryParse is available in .NET 4.0 END UPDATE Obviously there is no public
I want to interrupt some specific grails domain class events(read,write,delete,update).Is there any hibernate eventlistner
update: I know there is no one best way to do everything. Sorry for
In sql server 2005 , inside an update trigger is there a way to
Is there any way to force an update of software using RunOnce, without having
Is there a way to tell subversion update/merge unless it would cause a conflict?
Is there a way to update more than one Database having same schema using
Is there a way to update information in a div of a parent page
Is there an easy way to update my Facebook status (What's on your mind?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.