method
url_options
rails latest stable - Class:
ActionView::Helpers::UrlHelper
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
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"}