# Including partials in ActionMailer template files?

**URL:** <https://www.ruby-forum.com/t/including-partials-in-actionmailer-template-files/81714>\
**Category:** Rails\
**Created:** [January 11, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/including-partials-in-actionmailer-template-files/81714 "2007-01-11T20:46:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [January 11, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/including-partials-in-actionmailer-template-files/81714/1 "2007-01-11T20:46:11Z")

</div>

I have class called:

class Notifier \< ActionMailer::Base

Then in my view for that class I have an rhtml file that holds the html  
for the email. I am trying to do

\<%= render :partial =\> “header” %\>

and I’m getting:

ActionView::TemplateError (undefined method `controller\_path’ for  
Notifier:Class) on line #1 of  
app/views/notifier/user\_welcome.text.html.rhtml:

Any idea how I can include partials in these files?

Thanks for your help.
