Permalink
Browse files

Syntax error in example code: not valid to omit parens with hash argu…

…ments.
  • Loading branch information...
1 parent 095bfad commit f3853c7769aed018c1b8d55d57cb129a9739d9b2 @evanfarrar evanfarrar committed May 9, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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"

0 comments on commit f3853c7

Please sign in to comment.