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:
parent
dbdb104076
commit
65158a6701
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue