method

url_options

rails latest stable - Class: ActionView::Helpers::UrlHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

url_options()
public

Need to map default url options to controller one. def default_url_options(*args) #:nodoc:

controller.send(:default_url_options, *args)

end

1Note

Path Segments

fernyb ยท Aug 7, 2010

url_options Returns a hash with path segments.

Example:

{:_path_segments=>{:action=>"show", :location=>"los-angeles-ca", :controller=>"city"}, :script_name=>"", :protocol=>"http://", :host=>"localhost:3000"}