Methods
M
U
Instance Public methods
use_format_paragraph()
# File actionmailer/test/mail_helper_test.rb, line 17
def use_format_paragraph
  @text = "But soft! What light through yonder window breaks?"

  mail_with_defaults do |format|
    format.html { render(:inline => "<%= format_paragraph @text, 15, 1 %>") }
  end
end
use_mail_helper()
# File actionmailer/test/mail_helper_test.rb, line 4
def use_mail_helper
  @text = "But soft! What light through yonder window breaks? It is the east, " +
          "and Juliet is the sun. Arise, fair sun, and kill the envious moon, " +
          "which is sick and pale with grief that thou, her maid, art far more " +
          "fair than she. Be not her maid, for she is envious! Her vestal " +
          "livery is but sick and green, and none but fools do wear it. Cast " +
          "it off!"

  mail_with_defaults do |format|
    format.html { render(:inline => "<%= block_format @text %>") }
  end
end
use_mailer()
# File actionmailer/test/mail_helper_test.rb, line 25
def use_mailer
  mail_with_defaults do |format|
    format.html { render(:inline => "<%= mailer.message.subject %>") }
  end
end
use_message()
# File actionmailer/test/mail_helper_test.rb, line 31
def use_message
  mail_with_defaults do |format|
    format.html { render(:inline => "<%= message.subject %>") }
  end
end
Instance Protected methods
mail_with_defaults(&block)
# File actionmailer/test/mail_helper_test.rb, line 39
def mail_with_defaults(&block)
  mail(:to => "test@localhost", :from => "tester@example.com",
        :subject => "using helpers", &block)
end