actionview/lib/action_view/helpers/url_helper.rb
# This helper may be included in any class that includes the
# URL helpers of a routes (routes.url_helpers). Some methods
# provided here will only work in the context of a request
# (link_to_unless_current, for instance), which must be provided
# as a method called #request on the context.
This helper may be included in any class that includes the
URL helpers of a routes (routes.url_helpers). Some methods
provided here will only work in the context of a request
(link_to_unless_current, for instance), which must be provided
as a method called #request on the context.
This helper may be included in any class that includes the URL helpers of a routes ( routes . url_helpers ) . Some methods provided here will only work in the context of a request ( link_to_unless_current for instance ) which must be provided as a method called #request on the context .
def url_target(name, options)
          if name.respond_to?(:model_name) && options.is_a?(Hash) && options.empty?
            url_for(name)
          else
            url_for(options)
          end
        end
def url_target ( name , options ) if name . respond_to? ( :model_name ) && options . is_a? ( Hash ) && options . empty? url_for ( name ) else url_for ( options ) end end
This helper may be included in any class that includes the
URL helpers of a routes (routes.url_helpers).
This helper may be included in any class that includes the URL helpers of a routes ( routes . url_helpers ) .
name
<not_specific>
options
<not_specific>