One option is to use partials. Or you can set the @template field to the name of another action:
class Mailer < ActionMailer::Base
  def foo
    subject "Hello World"
  end
  
  def bar
    subject "Hello Universe"
    @template = 'foo'
  end
end
Posted by Henning Koch to makandra dev (2010-09-07 08:13)