# Mailer template names and underscores weirdness

**URL:** <https://www.ruby-forum.com/t/mailer-template-names-and-underscores-weirdness/109777>\
**Category:** Rails\
**Created:** [July 19, 2007, 12:34am UTC](https://www.ruby-forum.com/t/mailer-template-names-and-underscores-weirdness/109777 "2007-07-19T00:34:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![starmaerker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9bcb4/32.png) [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Post date:** [July 19, 2007, 12:34am UTC](https://www.ruby-forum.com/t/mailer-template-names-and-underscores-weirdness/109777/1 "2007-07-19T00:34:50Z")

</div>

Recently, in one of my projects that mailers stopped working.

It was complaining that it couldn’t find a rhtml, rjs, etc… file.

by looking at the stack trace, it appears to be appending an  
underscore to the file name it’s looking for.

So if I have a mailer method named contact, it’s looking for the file  
contact\_.rhtml. If I just have contact.rhtml, it blows up.

Has anybody else seen this behavior, or know what’s causing it.

Thanks,

andrew
