aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2011-06-21 09:10:52 -0400
committerMatt Jankowski <mjankowski@thoughtbot.com>2011-06-21 09:10:52 -0400
commit4f433bcd8d8e24665d8979bbc93ef3b132afd548 (patch)
tree89d7773748304bea6c422afb0298a3e88943b3a2 /actionmailer
parent1f4fb6f6355bdf8f16f52c8803d8d26ddb1a81ef (diff)
downloadrails-4f433bcd8d8e24665d8979bbc93ef3b132afd548.tar.gz
rails-4f433bcd8d8e24665d8979bbc93ef3b132afd548.tar.bz2
rails-4f433bcd8d8e24665d8979bbc93ef3b132afd548.zip
clarify why the only_path => false option is needed when default :host has been set for mailers
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer/base.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 490ffc00c3..4b48d6bfed 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -131,10 +131,10 @@ module ActionMailer #:nodoc:
#
# config.action_mailer.default_url_options = { :host => "example.com" }
#
- # If you decide to set a default <tt>:host</tt> for your mailers, then you want to use the
- # <tt>:only_path => false</tt> option when using <tt>url_for</tt>. This will ensure that absolute URLs are
- # generated because the <tt>url_for</tt> view helper by default will generate relative URLs when a
- # <tt>:host</tt> option isn't explicitly provided.
+ # When you decide to set a default <tt>:host</tt> for your mailers, then you need to make sure to use the
+ # <tt>:only_path => false</tt> option when using <tt>url_for</tt>. Since the <tt>url_for</tt> view helper
+ # will generate relative URLs by default when a <tt>:host</tt> option isn't explicitly provided, passing
+ # <tt>:only_path => false</tt> will ensure that absolute URLs are generated.
#
# = Sending mail
#