ActionMailer (Action Mailer) Template not found? Help!

I have been going around on the Internet about this all day and found
absolutely nothing that seems to fit this problem.

I have a mailer named “Notifier” – in fact I have been using the EXACT
code from the “Agile Development With Rails” chapter on “Sending
E-Mail”, pp. 411-416, except for my names (mailer named “Notifier”,
emailer method named “report”. And what I get is:

ActionView::ActionViewError in <my_controller>#<my_calling_method>

“No rhtml, rxml, rjs or delegate template found for report.”

I generated the files with “script/server mailer Notifier report”, and
there is indeed a template: apps/views/notifier/report.rhtml

I am calling it with:

email = ErrNotifier.create_err_report( Time.now )
render(:text => ‘

’ + email.encoded + ‘
’)

just as in the book. Please help! This error message makes no sense . .
. and to make matters worse, it actually started working for a few
minutes then stopped, giving the same error again! The
automatically-generated “notifier_test.rb” gives me exactly the same
error. The error is on the “create” line, NOT the render line! So it
should not be related to connection or smtp issues.

I have to get this working for an app that is about ready to go out. Any
help would be greatly appreciated.

Correction. The call above should read:

email = Notifier.create_report( Time.now )
render(:text => ‘

’ + email.encoded + ‘
’)

My problem is NOT a simple typo; that is just from another mailer I
generated in desperation. I have been messing with this all day and I am
frustrated.