# File lib/action_view/helpers/url_helper.rb, line 23 def link_to(name, options = {}, html_options = nil, *parameters_for_method_reference) html_options = (html_options || {}).stringify_keys convert_confirm_option_to_javascript!(html_options) if options.is_a?(String) content_tag "a", name || options, (html_options || {}).merge("href" => options) else content_tag( "a", name || url_for(options, *parameters_for_method_reference), (html_options || {}).merge("href" => url_for(options, *parameters_for_method_reference)) ) end end