From f3853c7769aed018c1b8d55d57cb129a9739d9b2 Mon Sep 17 00:00:00 2001 From: Evan Farrar Date: Sat, 9 May 2009 13:27:15 -0500 Subject: Syntax error in example code: not valid to omit parens with hash arguments. --- railties/guides/source/action_mailer_basics.textile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties') 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 " 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 @@ -165,7 +165,7 @@ class UserMailer < ActionMailer::Base from "My Awesome Site Notifications" 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" -- cgit v1.2.3