# ActionMailer,Templates (erb) and aweson\_mail without Rails

**URL:** <https://www.ruby-forum.com/t/actionmailer-templates-erb-and-aweson-mail-without-rails/146593>\
**Category:** Ruby\
**Created:** [August 22, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/actionmailer-templates-erb-and-aweson-mail-without-rails/146593 "2008-08-22T19:07:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pabloq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Post date:** [August 22, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/actionmailer-templates-erb-and-aweson-mail-without-rails/146593/1 "2008-08-22T19:07:54Z")

</div>

Hi Rubiceros,

I have built an mail delivery system using Action Mailer, it works  
without  
rails. I would like to use erb template with it but I’m having problem  
defining view path for it. I got this:

\*Unprocessed view path found: nil. Set your view paths with  
#append\_view\_path, #prepend\_view\_path, or #view\_paths=.

c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_view/template\_finder.rb:173:in  
`check\_view\_paths’\*

Also, I would like to add aweson\_mail to it, but I didn’t get response  
from  
imedo devellopers about a version without rails.

So, I have two question:

1. Does anyone know how define the view path in order to use erb  
templates  
without rails?
2. Anyone know somebody from Imedo in order to get info. about  
aweson\_mail?

Thanks

---

<div class="post-metadata">

**Author:** ![pabloq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Post date:** [August 22, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/actionmailer-templates-erb-and-aweson-mail-without-rails/146593/2 "2008-08-22T19:48:23Z")

</div>

I found how to do that:

ActionMailer::Base.template\_root= ‘templates\_path’

It must exist a “mailer” folder in “templates” path.

Still having problem with aweson\_mail…

2008/8/22 Pablo Q. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
