Forum: Ruby on Rails Including partials in ActionMailer template files?

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.
328f0bb678423fcea01ebe3b0edc74e6?d=identicon&s=25 Ben Johnson (benjohnson)
on 2007-01-11 20:46
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

Any idea how I can include partials in these files?

Thanks for your help.
This topic is locked and can not be replied to.