Sha256: f3b3b67ad84c3bbb2a29582b7e51ff654be8340004b35ed4f3a116577e42904a

Contents?: true

Size: 362 Bytes

Versions: 4

Compression:

Stored size: 362 Bytes

Contents

class <%= class_name %> < ActionMailer::Base
  default :from => "from@example.com"
<% for action in actions -%>

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.<%= file_name %>.<%= action %>.subject
  #
  def <%= action %>
    @greeting = "Hi"

    mail :to => "to@example.org"
  end
<% end -%>
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
actionmailer-3.0.1 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-3.0.0 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-3.0.0.rc2 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-3.0.0.rc lib/rails/generators/mailer/templates/mailer.rb