Actionmailer template_root not set / nil

14 views
Skip to first unread message

Dean Holdren

unread,
Aug 5, 2008, 1:59:25 PM8/5/08
to rubyonra...@googlegroups.com
I'm using ActionMailer in a Rails 2.1 app, and it looks like ActionMailer::Base.template_root is not being set

I have to set it in environments/test.rb, development.rb etc. to:
ActionMailer::Base.template_root = "#{File.dirname(__FILE__)}/../../app/views"

Shouldn't this be the default?

Can anyone else reproduce this?

jared

unread,
Sep 16, 2008, 4:46:39 PM9/16/08
to Ruby on Rails: Core
I also experienced this problem this morning. I kept getting:

ActionView::TemplateFinder::InvalidViewPath (Unprocessed view path
found: nil. Set your view paths with #append_view_path,
#prepend_view_path, or #view_paths=.):

I solved this the same way you did. Did you find anything else out?
Has nobody opened a ticket for this?

Michael Koziarski

unread,
Sep 17, 2008, 4:57:50 AM9/17/08
to rubyonra...@googlegroups.com
On Tue, Sep 16, 2008 at 10:46 PM, jared <jared...@gmail.com> wrote:
>
> I also experienced this problem this morning. I kept getting:
>
> ActionView::TemplateFinder::InvalidViewPath (Unprocessed view path
> found: nil. Set your view paths with #append_view_path,
> #prepend_view_path, or #view_paths=.):
>
> I solved this the same way you did. Did you find anything else out?
> Has nobody opened a ticket for this?

Do you guys have any plugins installed? This isn't something which is
affecting everyone, so you guys must have something in common.


--
Cheers

Koz

Reply all
Reply to author
Forward
0 new messages