I'm using ActionMailer to do some simple emailing.  In the mail
templates, I can call ActionPack helpers.  What I can't figure out
is how to define my own helpers and access them in the mail template.

I've tried putting the method def in application_helper.rb, application.rb, and directly in the foo_mailer.rb file (where
class fooMailer < ActionMailer::Base).  And restarted the
server.

In all cases, I get an error

 "undefined method 'bar' for #<ActionView::Base:0xblahblah>"

Any idea what's missing?  Does the issue have to do with
ActionMailer objects being models instead of controllers?

Thanks!

                -glenn
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to