aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-06-12 17:04:00 -0600
committerSean Griffin <sean@thoughtbot.com>2014-06-12 17:04:00 -0600
commit4e009eec3dacf76d25f61402f86b2e474dadee8a (patch)
tree5fad08094179f14e45d3dc047b1a2c6782035b9c /guides/source
parentae1b451e65b864835a65bfbb2409f0fd5451fb52 (diff)
parentfd984e850050710bfcba45c641757bce24072e12 (diff)
downloadrails-4e009eec3dacf76d25f61402f86b2e474dadee8a.tar.gz
rails-4e009eec3dacf76d25f61402f86b2e474dadee8a.tar.bz2
rails-4e009eec3dacf76d25f61402f86b2e474dadee8a.zip
Merge pull request #15667 from samdec/mailer_doc_bug_fix
fix bug in email with name example code
Diffstat (limited to 'guides/source')
-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 c7117027c0..cb1c1c653d 100644
--- a/guides/source/action_mailer_basics.md
+++ b/guides/source/action_mailer_basics.md
@@ -309,7 +309,7 @@ email address in the format `"Full Name <email>"`.
```ruby
def welcome_email(user)
@user = user
- email_with_name = "#{@user.name} <#{@user.email}>"
+ email_with_name = %("#{@user.name}" <#{@user.email}>)
mail(to: email_with_name, subject: 'Welcome to My Awesome Site')
end
```