aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/README.rdoc
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-05-19 09:17:49 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-05-19 09:17:49 +0530
commite3eaeb490aa97055e1ecc497412ca18e4604c9ba (patch)
tree19b25afbf911906a7704408b74331a0dc7757c98 /actionmailer/README.rdoc
parent8630cd420cf2a6f60151d88c677e8526acdeec57 (diff)
downloadrails-e3eaeb490aa97055e1ecc497412ca18e4604c9ba.tar.gz
rails-e3eaeb490aa97055e1ecc497412ca18e4604c9ba.tar.bz2
rails-e3eaeb490aa97055e1ecc497412ca18e4604c9ba.zip
Example Usage updated for actionpack and actionmailer.
Diffstat (limited to 'actionmailer/README.rdoc')
-rw-r--r--actionmailer/README.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/README.rdoc b/actionmailer/README.rdoc
index af9bf40f9e..2806531dfa 100644
--- a/actionmailer/README.rdoc
+++ b/actionmailer/README.rdoc
@@ -102,7 +102,7 @@ Example:
)
if email.has_attachments?
- for attachment in email.attachments
+ email.attachments.each do |attachment|
page.attachments.create({
:file => attachment, :description => email.subject
})