--- !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 false.
  - !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 default_url_options.
  - !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.
  type: :BULLET
- !ruby/struct:SM::Flow::P 
  body: Any other key(:controller, :action, 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', :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
