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 7163721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:57:00+00:00 2026-05-28T13:57:00+00:00

Note: Using Rails 3.1 and current delayed_job gem. I have a User model that

  • 0

Note: Using Rails 3.1 and current delayed_job gem.

I have a User model that calls after_create :mail_confirmation.

The mail_confirmation method looks like the following, per the delayed_job instructions:

def mail_confirmation
    UserMailer.delay.registration_confirmation(self)
end

The UserMailer is:

class UserMailer < ActionMailer::Base
  default from: "test@mysite.com"

  def registration_confirmation(user)
    @user = user
    mail(:to => "#{user.full_name} <#{user.email}>", :subject => "Test registration email")
  end
end

The job is queued, and the output from rake jobs:work makes it seem as if it completed successfully:

[Worker(host:mymac.local pid:73694)] Starting job worker
[Worker(host:mymac.local pid:73694)] Class#registration_confirmation completed after 1.3659
[Worker(host:mymac.local pid:73694)] 1 jobs processed at 0.7288 j/s, 0 failed ...

There is no error but the email is never sent. It works fine if I remove delayed from the method call in the User model and go with the standard deliver method:

def mail_confirmation
    UserMailer.registration_confirmation(self).deliver
end

How can I find out what is happening when the job is processed? Any idea how to fix it?


Update It appears that it is related to this:

NoMethodError with delayed_job (collectiveidea gem)

  • 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-28T13:57:01+00:00Added an answer on May 28, 2026 at 1:57 pm

    Yeah i had this same issue. @Clay is correct, there is an issue at the moment: https://github.com/collectiveidea/delayed_job/issues/323

    I resolved this problem by reverting back to the previous version of delayed_job.

    gem 'delayed_job', '2.1.2'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: I'm using Rails 2.3.8, not 3. I have a Photo model with a
My Rails application have a User model and a Group model, where User belongs
I'm using codebrew\backbone-rails in a nested model example (say I have a collection of
First as a note I am using this plugin in a Rails app. Ok
Note: Using MySQL 4.0, which means no subqueries (at present). I have 2 tables:
Note: Using Monotouch. I have a directory called Images where I have all my
I found the following claim in the documentation for Net::OpenSSH : Note that using
Note: I'm using Google Chrome Currently I have this test page http://www.evecakes.com/doodles/canvas_size_issue.htm It should
[NOTE: I'm using ASP.NET MVC2 RC2.] I have URLs like this: /customers/123/orders/456/items/index /customers/123/orders/456/items/789/edit My
I have a rails app running on Heroku. I am using paperclip for some

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.