On 1/9/06, David Vallner <david / vallner.net> wrote: > Anyways, that problem got resolved, but here's another quirk. My test > method went like: > > > class Notify > def notifier_test(test_message) > recipients "fred / example.com, barney / example.com, > wilma / example.com" > from "betty / example.com" > subject "Notifier Test" > > body ["test_message" = test_message] > end > end > > (That's using the traits versions of the code). > > And the template was: > > Notifier Test > > Test message: <%= @test_message %> > > > And when I tried to go Notify.deliver_notifier_test("Testing.") in a > Rails console, I got a very weird Exception / traceback, possibly while > compiling the ERB template: > > ActionView::TemplateError: > > ActionView::TemplateError (`@test_messageTesting.' is not allowed as > an instance > variable name) on line #0 of app/views/notify_tn1/notifier_test.rhtml: > 1: This is a notifier test e-mail. > 2: > 3: The test message is: <%= @test_message %> I've not used ActionMailer, so I'm not sure what the syntax should be, but my guess is the line: body ["test_message" = test_message] Is causing the error. Maybe that should be: body ["test_message" => test_message] ??? Jacob Fugal