# Rendering partials with ActionMailer

**URL:** <https://www.ruby-forum.com/t/rendering-partials-with-actionmailer/98521>\
**Category:** Rails\
**Created:** [January 29, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/rendering-partials-with-actionmailer/98521 "2006-01-29T20:10:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janovetz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Post date:** [January 29, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/rendering-partials-with-actionmailer/98521/1 "2006-01-29T20:10:09Z")

</div>

Can ActionMailer render partials (like .sigs, for example)? When I try  
to render :partial, I get an error:

undefined method `controller\_path’ for SomeNotify:Class

I also tried putting the partial within /shared, but it likes that even  
less – it can’t seem to find the template.

Jake

---

<div class="post-metadata">

**Author:** ![janovetz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Post date:** [January 30, 2006, 1:08am UTC](https://www.ruby-forum.com/t/rendering-partials-with-actionmailer/98521/2 "2006-01-30T01:08:21Z")

</div>

It seems you can render partials from ActionMailer templates like this:

render :partial =\> ‘…/shared/template’

Cheers, -Jonny.

Jake J. wrote:

> Can ActionMailer render partials (like .sigs, for example)? When I try  
> to render :partial, I get an error:
> 
> undefined method `controller\_path’ for SomeNotify:Class
> 
> I also tried putting the partial within /shared, but it likes that even  
> less – it can’t seem to find the template.
> 
> Jake
