# Engines + Exception Notifier = Can't find template file

**URL:** <https://www.ruby-forum.com/t/engines-exception-notifier-cant-find-template-file/128928>\
**Category:** Engines\
**Created:** [February 12, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/engines-exception-notifier-cant-find-template-file/128928 "2008-02-12T19:36:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratkins](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ratkins](https://www.ruby-forum.com/u/ratkins)\
**Post date:** [February 12, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/engines-exception-notifier-cant-find-template-file/128928/1 "2008-02-12T19:36:25Z")

</div>

* * *

Engine-Users mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org](http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org)

---

<div class="post-metadata">

**Author:** ![ratkins](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ratkins](https://www.ruby-forum.com/u/ratkins)\
**Post date:** [February 12, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/engines-exception-notifier-cant-find-template-file/128928/2 "2008-02-12T19:42:57Z")

</div>

I had that, I think it’s a rails 2.x thing cause we had it when  
upgrading to  
2.x.

It was easily fixed by making the exception\_notifier an engine by making  
use  
of an app folder to play nice with engines (or should we say so engines  
would play nice with it).

So a find|grep -v svn in my vendor/plugins/exception\_notification folder  
gives

./app  
./app/helpers  
./app/helpers/exception\_notifier\_helper.rb  
./app/models  
./app/models/exception\_notifier.rb  
./app/views  
./app/views/exception\_notifier  
./app/views/exception\_notifier/exception\_notification.rhtml  
./app/views/exception\_notifier/\_backtrace.rhtml  
./app/views/exception\_notifier/\_environment.rhtml  
./app/views/exception\_notifier/\_inspect\_model.rhtml  
./app/views/exception\_notifier/\_request.rhtml  
./app/views/exception\_notifier/\_session.rhtml  
./app/views/exception\_notifier/\_title.rhtml  
./init.rb  
./lib  
./lib/exception\_notifiable.rb  
./README  
./test  
./test/exception\_notifier\_helper\_test.rb  
./test/test\_helper.rb

and cat init.rb is just

require “action\_mailer”

-Andrew

On 12 Feb 2008 10:35:44 -0800, Robert A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ratkins](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ratkins](https://www.ruby-forum.com/u/ratkins)\
**Post date:** [February 14, 2008, 5:13am UTC](https://www.ruby-forum.com/t/engines-exception-notifier-cant-find-template-file/128928/3 "2008-02-14T05:13:16Z")

</div>

I had this issue as well upgrading … the offending line though was in  
the engines action\_mailer in  
initialize\_template\_class\_with\_engine\_additions

renderer.view\_paths = ActionController::Base.view\_paths.dup

I changed it to:

renderer.append\_view\_path(ActionController::Base.view\_paths.dup)

There is a ticket [http://dev.rails-engines.org/ticket/278](http://dev.rails-engines.org/ticket/278)  
username/password: engines/engines

Anyone have any thoughts on that?

Shane
