aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorDan Bernier <dbernier@continuity.net>2014-12-24 16:12:47 +0000
committerDan Bernier <dbernier@continuity.net>2014-12-24 16:12:47 +0000
commit65158a6701b4200aaf4575b8f645acc7f2ae0895 (patch)
tree8cf5d2ffbaebccb2e0978cac4220c85840d8e66b /guides
parentdbdb1040760c3a3ce8c336dab59f0603975b28ec (diff)
downloadrails-65158a6701b4200aaf4575b8f645acc7f2ae0895.tar.gz
rails-65158a6701b4200aaf4575b8f645acc7f2ae0895.tar.bz2
rails-65158a6701b4200aaf4575b8f645acc7f2ae0895.zip
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.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/action_mailer_basics.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_mailer_basics.md b/guides/source/action_mailer_basics.md
index 9a5204848b..c9e35dd985 100644
--- a/guides/source/action_mailer_basics.md
+++ b/guides/source/action_mailer_basics.md
@@ -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