Forum: Ruby on Rails Mailer template names and underscores weirdness

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D35d964695abd1bac108370eaf001af3?d=identicon&s=25 Andrew Selder (aselder)
on 2007-07-19 00:34
(Received via mailing list)
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.


This topic is locked and can not be replied to.