method

url_for

url_for(options)
public

Generate a url with the provided options. The following special options may effect the constructed url:

  * :host Specifies the host the link should be targetted at. This option
    must be provided either explicitly, or via default_url_options.
  * :protocol The protocol to connect to. Defaults to 'http'
  * :port Optionally specify the port to connect to.