1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix bug in ActionMailer guide.

When setting a mailer's default from address, you have to pass a hash
with a `:from` key; you can't pass just an email address.
This commit is contained in:
Dan Bernier 2014-12-24 16:12:47 +00:00
parent dbdb104076
commit 65158a6701

View file

@ -50,7 +50,7 @@ create test/mailers/previews/user_mailer_preview.rb
```ruby
# app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base
default "from@example.com"
default from: "from@example.com"
layout 'mailer'
end