[Backgroundrb-devel] problems with ActionMailer

Rolando Abarca funkaster at gmail.com
Mon Aug 7 12:03:43 EDT 2006


On 8/7/06, Michael Siebert <info at siebert-wd.de> wrote:
> try:
> in your worker
>       require File.dirname(__FILE__) +
> "../../../config/environment.rb"
>       ActionMailer::Base.template_root =
> File.expand_path(File.dirname(__FILE__) + "../../../app/views")
>       NotificationMailer.deliver_daily_report(users, rep,
> items)

thanks!! that worked... although not exactly like that, this worked:

require File.dirname(__FILE__) + "/../../config/environment.rb"
ActionMailer::Base.template_root =
File.expand_path(File.dirname(__FILE__) + "/../../app/views")

Had to add a slash before and only go back two directories...
-- 
rolando -- [[ knowledge is empty, fill it ]] --
"Tam pro papa quam pro rege bibunt omnes sine lege."


More information about the Backgroundrb-devel mailing list