提交 65158a67 编写于 作者: D Dan Bernier

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.
上级 dbdb1040
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册