Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clarify why the only_path => false option is needed when default :hos…

…t has been set for mailers
  • Loading branch information...
commit 4f433bcd8d8e24665d8979bbc93ef3b132afd548 1 parent 1f4fb6f
@mjankowski mjankowski authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionmailer/lib/action_mailer/base.rb
View
8 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
#
Please sign in to comment.
Something went wrong with that request. Please try again.