aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorEvan Farrar <evanfarrar@gmail.com>2009-05-09 13:27:15 -0500
committerEvan Farrar <evanfarrar@gmail.com>2009-05-09 13:27:15 -0500
commitf3853c7769aed018c1b8d55d57cb129a9739d9b2 (patch)
tree015fc87578d2cb11d18807f324e8737a2377796c /railties/guides
parent095bfadb61c9e010c355222e55575ed46a4d01f9 (diff)
downloadrails-f3853c7769aed018c1b8d55d57cb129a9739d9b2.tar.gz
rails-f3853c7769aed018c1b8d55d57cb129a9739d9b2.tar.bz2
rails-f3853c7769aed018c1b8d55d57cb129a9739d9b2.zip
Syntax error in example code: not valid to omit parens with hash arguments.
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/action_mailer_basics.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/action_mailer_basics.textile b/railties/guides/source/action_mailer_basics.textile
index 37fa43f8cb..35f9722a98 100644
--- a/railties/guides/source/action_mailer_basics.textile
+++ b/railties/guides/source/action_mailer_basics.textile
@@ -46,7 +46,7 @@ class UserMailer < ActionMailer::Base
from "My Awesome Site Notifications <notifications@example.com>"
subject "Welcome to My Awesome Site"
sent_on Time.now
- body {:user => user, :url => "http://example.com/login"}
+ body( {:user => user, :url => "http://example.com/login"})
end
end
</ruby>
@@ -165,7 +165,7 @@ class UserMailer < ActionMailer::Base
from "My Awesome Site Notifications<notifications@example.com>"
subject "Welcome to My Awesome Site"
sent_on Time.now
- body {:user => user, :url => "http://example.com/login"}
+ body( {:user => user, :url => "http://example.com/login"})
content_type "text/html"
# use some_other_template.text.(html|plain).erb instead
template "some_other_template"