0
@@ -15,8 +15,8 @@ module ActionController
0
# In addition to providing +url_for+, named routes are also accessible after
0
- # The default options for urls written by this writer. Typically a :host pair
0
+ # The default options for urls written by this writer. Typically a <tt>:host</tt>
0
mattr_accessor :default_url_options
0
self.default_url_options = {}
0
@@ -29,16 +29,19 @@ module ActionController
0
# Generate a url based on the options provided, default_url_options and the
0
# routes defined in routes.rb. The following options are supported:
0
- # * <tt>:only_path</tt> If true, the relative url is returned. Defaults to
false.
0
+ # * <tt>:only_path</tt> If true, the relative url is returned. Defaults to
+false+.
0
# * <tt>:protocol</tt> The protocol to connect to. Defaults to 'http'.
0
- # * <tt>:host</tt> Specifies the host the link should be targetted at. If <tt>:only_path</tt> is false, this option must be
0
- # provided either explicitly, or via default_url_options.
0
+ # * <tt>:host</tt> Specifies the host the link should be targetted at.
0
+ # If <tt>:only_path</tt> is false, this option must be
0
+ # provided either explicitly, or via +default_url_options+.
0
# * <tt>:port</tt> Optionally specify the port to connect to.
0
# * <tt>:anchor</tt> An anchor name to be appended to the path.
0
- # * <tt>:skip_relative_url_root</tt> If true, the url is not constructed using the relative_url_root set in <tt>ActionController::AbstractRequest.relative_url_root</tt>.
0
+ # * <tt>:skip_relative_url_root</tt> If true, the url is not constructed using the
0
+ # +relative_url_root+ set in ActionController::AbstractRequest.relative_url_root.
0
# * <tt>:trailing_slash</tt> If true, adds a trailing slash, as in "/archive/2009/"
0
- # Any other key(:controller, :action, etc...) given to <tt>url_for</tt> is forwarded to the Routes module.
0
+ # Any other key (<tt>:controller</tt>, <tt>:action</tt>, etc.) given to
0
+ # +url_for+ is forwarded to the Routes module.
Comments
No one has commented yet.