url_for(options = nil)
Instance Public methods
Generate a url based on the options provided, default_url_options and the
routes defined in routes.rb. The following options are supported:
:only_path - If true, the relative url is returned. Defaults
to false.
:protocol - The protocol to connect to. Defaults to
'http'.
:host - Specifies the host the link should be targeted at. If
:only_path is false, this option must be provided either
explicitly, or via default_url_options.
:s