提交 4e009eec 编写于 作者: S Sean Griffin

Merge pull request #15667 from samdec/mailer_doc_bug_fix

fix bug in email with name example code
......@@ -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
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册