--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Generate a url based on the options provided, default_url_options and the routes defined in routes.rb. The following options are supported:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:only_path</tt> - If true, the relative url is returned. Defaults to <tt>false</tt>.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:protocol</tt> - The protocol to connect to. Defaults to 'http'.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:host</tt> - Specifies the host the link should be targetted at. If <tt>:only_path</tt> is false, this option must be provided either explicitly, or via <tt>default_url_options</tt>.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:port</tt> - Optionally specify the port to connect to.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:anchor</tt> - An anchor name to be appended to the path.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:skip_relative_url_root</tt> - If true, the url is not constructed using the <tt>relative_url_root</tt> set in ActionController::AbstractRequest.relative_url_root.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:trailing_slash</tt> - If true, adds a trailing slash, as in &quot;/archive/2009/&quot;
  type: :BULLET
- !ruby/struct:SM::Flow::P 
  body: Any other key (<tt>:controller</tt>, <tt>:action</tt>, etc.) given to <tt>url_for</tt> is forwarded to the Routes module.
- !ruby/struct:SM::Flow::P 
  body: "Examples:"
- !ruby/struct:SM::Flow::VERB 
  body: "   url_for :controller =&gt; 'tasks', :action =&gt; 'testing', :host=&gt;'somehost.org', :port=&gt;'8080'    # =&gt; 'http://somehost.org:8080/tasks/testing'\n   url_for :controller =&gt; 'tasks', :action =&gt; 'testing', :host=&gt;'somehost.org', :anchor =&gt; 'ok', :only_path =&gt; true    # =&gt; '/tasks/testing#ok'\n   url_for :controller =&gt; 'tasks', :action =&gt; 'testing', :trailing_slash=&gt;true  # =&gt; 'http://somehost.org/tasks/testing/'\n   url_for :controller =&gt; 'tasks', :action =&gt; 'testing', :host=&gt;'somehost.org', :number =&gt; '33'  # =&gt; 'http://somehost.org/tasks/testing?number=33'\n"
full_name: ActionController::UrlWriter#url_for
is_singleton: false
name: url_for
params: (options)
visibility: public
