From e2c17ff3ec050733c9f5f660eaafd46733215996 Mon Sep 17 00:00:00 2001 From: Waynn Lue Date: Mon, 9 Sep 2013 15:46:12 -0700 Subject: [ci skip] 'previous version of Rails' is gramatically incorrect --- actionmailer/README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/README.rdoc') diff --git a/actionmailer/README.rdoc b/actionmailer/README.rdoc index a14a6ba18f..178572706c 100644 --- a/actionmailer/README.rdoc +++ b/actionmailer/README.rdoc @@ -61,7 +61,7 @@ generated would look like this: Thank you for signing up! -In previous version of Rails you would call create_method_name and +In previous versions of Rails you would call create_method_name and deliver_method_name. Rails 3.0 has a much simpler interface - you simply call the method and optionally call +deliver+ on the return value. -- cgit v1.2.3 From ba46d524db1d8a76a12bb4cc589d1c0943fe645c Mon Sep 17 00:00:00 2001 From: Waynn Lue Date: Thu, 12 Sep 2013 14:44:38 -0700 Subject: take out reference to previous versions of Rails --- actionmailer/README.rdoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'actionmailer/README.rdoc') diff --git a/actionmailer/README.rdoc b/actionmailer/README.rdoc index 178572706c..96dd0b1a2e 100644 --- a/actionmailer/README.rdoc +++ b/actionmailer/README.rdoc @@ -61,9 +61,7 @@ generated would look like this: Thank you for signing up! -In previous versions of Rails you would call create_method_name and -deliver_method_name. Rails 3.0 has a much simpler interface - you -simply call the method and optionally call +deliver+ on the return value. +In order to send mails, you simply call the method and then call +deliver+ on the return value. Calling the method returns a Mail Message object: -- cgit v1.2.3 From a1f1e6d9e20a8d527eff900a865a270be2c0d794 Mon Sep 17 00:00:00 2001 From: Harshad Sabne Date: Fri, 8 Nov 2013 13:28:14 +0530 Subject: Update README.rdoc [ci skip] Highlighted code --- actionmailer/README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/README.rdoc') diff --git a/actionmailer/README.rdoc b/actionmailer/README.rdoc index 96dd0b1a2e..c3dcd3c3e4 100644 --- a/actionmailer/README.rdoc +++ b/actionmailer/README.rdoc @@ -74,7 +74,7 @@ Or you can just chain the methods together like: == Setting defaults -It is possible to set default values that will be used in every method in your Action Mailer class. To implement this functionality, you just call the public class method default which you get for free from ActionMailer::Base. This method accepts a Hash as the parameter. You can use any of the headers e-mail messages has, like :from as the key. You can also pass in a string as the key, like "Content-Type", but Action Mailer does this out of the box for you, so you won't need to worry about that. Finally, it is also possible to pass in a Proc that will get evaluated when it is needed. +It is possible to set default values that will be used in every method in your Action Mailer class. To implement this functionality, you just call the public class method default which you get for free from ActionMailer::Base. This method accepts a Hash as the parameter. You can use any of the headers e-mail messages has, like :from as the key. You can also pass in a string as the key, like "Content-Type", but Action Mailer does this out of the box for you, so you won't need to worry about that. Finally, it is also possible to pass in a Proc that will get evaluated when it is needed. Note that every value you set with this method will get overwritten if you use the same key in your mailer method. -- cgit v1.2.3