aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/README.rdoc
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2013-04-22 12:54:16 +0400
committerAlexey Vakhov <vakhov@gmail.com>2013-04-22 14:44:06 +0400
commit98ed2d43c4fb49bf1a45e4f3ddd2502bac5b1caf (patch)
treea4492da4af3011723c4c2d038d0e67147ca6f76b /actionmailer/README.rdoc
parentd2a799895b19cabca86a209cf2dac0dc5215ab48 (diff)
downloadrails-98ed2d43c4fb49bf1a45e4f3ddd2502bac5b1caf.tar.gz
rails-98ed2d43c4fb49bf1a45e4f3ddd2502bac5b1caf.tar.bz2
rails-98ed2d43c4fb49bf1a45e4f3ddd2502bac5b1caf.zip
Make AM readme example more consistent
At 4a6eba32 mail sending example was rewrited from rails 2 format to modern rails 3 approach. But passing parameter `recipient` to method Notifier#welcome was lost. Passing email as parameter makes this example more solid.
Diffstat (limited to 'actionmailer/README.rdoc')
-rw-r--r--actionmailer/README.rdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionmailer/README.rdoc b/actionmailer/README.rdoc
index ffd2217d58..a14a6ba18f 100644
--- a/actionmailer/README.rdoc
+++ b/actionmailer/README.rdoc
@@ -67,12 +67,12 @@ simply call the method and optionally call +deliver+ on the return value.
Calling the method returns a Mail Message object:
- message = Notifier.welcome # => Returns a Mail::Message object
- message.deliver # => delivers the email
+ message = Notifier.welcome("david@loudthinking.com") # => Returns a Mail::Message object
+ message.deliver # => delivers the email
Or you can just chain the methods together like:
- Notifier.welcome.deliver # Creates the email and sends it immediately
+ Notifier.welcome("david@loudthinking.com").deliver # Creates the email and sends it immediately
== Setting defaults