aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-11-23 22:51:51 +0100
committerXavier Noria <fxn@hashref.com>2010-11-23 22:51:51 +0100
commit0250c3eca40f5f2b3da698b11ff4f01f58db5a69 (patch)
tree7b36a15c861ecd5ef1aa721596f11cd8e199885f
parent85d64316a4b4205fa2490d05f62b25a63943f6ba (diff)
downloadrails-0250c3eca40f5f2b3da698b11ff4f01f58db5a69.tar.gz
rails-0250c3eca40f5f2b3da698b11ff4f01f58db5a69.tar.bz2
rails-0250c3eca40f5f2b3da698b11ff4f01f58db5a69.zip
copy-edits RDoc of 2fe43b6
-rw-r--r--actionpack/lib/action_dispatch/routing/url_for.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb
index 6c3fc5126a..d4db78a25a 100644
--- a/actionpack/lib/action_dispatch/routing/url_for.rb
+++ b/actionpack/lib/action_dispatch/routing/url_for.rb
@@ -119,8 +119,9 @@ module ActionDispatch
# to split the domain from the host.
# * <tt>:domain</tt> - Specifies the domain of the link, using the +tld_length+
# to split the subdomain from the host.
- # * <tt>:tld_length</tt> - Optionally specify the tld length (only used if :subdomain
- # or :domain are supplied).
+ # * <tt>:tld_length</tt> - Number of labels the TLD id composed of, only used if
+ # <tt>:subdomain</tt> or <tt>:domain</tt> are supplied. Defaults to
+ # <tt>ActionDispatch::Http::URL.tld_length</tt>, which in turn defaults to 1.
# * <tt>:port</tt> - Optionally specify the port to connect to.
# * <tt>:anchor</tt> - An anchor name to be appended to the path.
# * <tt>:trailing_slash</tt> - If true, adds a trailing slash, as in "/archive/2009/"