class AutoLayoutMailer

Public Instance Methods

hello() click to toggle source
# File actionmailer/test/mail_layout_test.rb, line 10
def hello
  mail()
end
multipart(type = nil) click to toggle source
# File actionmailer/test/mail_layout_test.rb, line 24
def multipart(type = nil)
  mail(content_type: type) do |format|
    format.text { render }
    format.html { render }
  end
end
nolayout() click to toggle source
# File actionmailer/test/mail_layout_test.rb, line 19
def nolayout
  @world = "Earth"
  mail(body: render(inline: "Hello, <%= @world %>", layout: false))
end
spam() click to toggle source
# File actionmailer/test/mail_layout_test.rb, line 14
def spam
  @world = "Earth"
  mail(body: render(inline: "Hello, <%= @world %>", layout: "spam"))
end