Forum: Rails Engines development ActionMailer (No rhtml, rxml, rjs or delegate template found

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.
3a301d7ca78eb4da89bce878608add09?d=identicon&s=25 Ian Duggan (Guest)
on 2007-02-27 13:16
(Received via mailing list)
Just spent a chunk of time hunting this down. I don't see any open
issues against this (I only see one open issue?).

Anyhow, it seems that engines munge the base_path of ActionView::Base in
such a way that the ActionMailer cannot find it's templates. It's doing
a FileTest.exist?(path) on a path of '{a,b,c}/template.rhml' and is
failing. I had to toss the following in the mix to get things working:

# Fix for engines and ActionMailer
module ActionView
  class Base
      def template_exists?(template_path, extension)
        file_path = full_template_path(template_path, extension)
        @@method_names.has_key?(file_path) ||

      def read_template_file(template_path, extension)

Not sure if I'm doing something else wrong to cause these to be needed.
Looking through the engines code, this stuff doesn't seem to be covered.
  Incidentally, I tried adding these to the
rails_extensions/templates.rb file, but they don't seem to get pulled in

05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2007-02-27 13:56
(Received via mailing list)
Hi Ian,

Thanks for the report. This stuff should certainly be covered, if it's

Can you create a ticket detailing which version of Rails you're
running against and as much detail about replicating the bug as
possible? You can find login information here:


This topic is locked and can not be replied to.