Active Mailer doesn't have the application helpers when used with delayed_job v.2

Posted by Savvas on Stack Overflow See other posts from Stack Overflow or by Savvas
Published on 2010-06-17T22:54:57Z Indexed on 2010/06/17 23:03 UTC
Read the original article Hit count: 353

So if I try sending an email with action mailer directly, I can use all application helpers like url_for, content_for etc, but when I try to do the exact same action [sending email] with delayed_job [send_later] I getting a delayed job fail, of undefined function content_for etc, so it is like no helpers are loaded in my ActionMailer. I am using rails 2.3.8, active_mailer 2.3.8 and delayed_job 2.0.3

Thanks!!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby