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 add_method_to_attributes!(html_options, method)
          if method_not_get_method?(method) && !html_options["rel"]&.match?(/nofollow/)
            if html_options["rel"].blank?
              html_options["rel"] = "nofollow"
            else
              html_options["rel"] = "#{html_options["rel"]} nofollow"
            end
          end
          html_options["data-method"] = method
        end
def add_method_to_attributes! ( html_options , method ) if method_not_get_method? ( method ) && ! html_options [ "rel" ] &. match? ( / nofollow / ) if html_options [ "rel" ] . blank? html_options [ "rel" ] = "nofollow" else html_options [ "rel" ] = "#{html_options["rel"]} nofollow" end end html_options [ "data-method" ] = method 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 ) .
html_options
<not_specific>
method
<not_specific>