# Partials, subfolders, and ActionMailer

**URL:** <https://www.ruby-forum.com/t/partials-subfolders-and-actionmailer/92174>\
**Category:** Rails\
**Created:** [April 16, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/partials-subfolders-and-actionmailer/92174 "2007-04-16T21:39:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fredrik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Post date:** [April 16, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/partials-subfolders-and-actionmailer/92174/1 "2007-04-16T21:39:32Z")

</div>

I get ActionMailer::TemplateError (controller\_path) from using  
render :partial =\> ‘item\_list’  
I’ve also tried manipulating the @template and the template\_root  
variable in ActionMailer for placing templates in a sub folder, but  
that does not work either. It never looks in the place I tell it to.  
Try it.

If anyone knows how to get either of those working, please let me  
know.

I saw someone filed a bug for the partials, but apparently they marked  
it resolved for 1.2.2 and I’m on 1.2.3.

For now I have removed the partials (copied them into all templates,  
ugh) and using tm as a prefix to the template instead of subfolder.

Thanks everyone. Hopefully someone can shed some light on it for me.

Fredrik
