# File actionpack/lib/action_view/helpers/javascript_helper.rb, line 82 82: def link_to_function(name, *args, &block) 83: html_options = args.extract_options! 84: function = args[0] || '' 85: 86: html_options.symbolize_keys! 87: function = update_page(&block) if block_given? 88: content_tag( 89: "a", name, 90: html_options.merge({ 91: - :href => html_options[:href] || "#", 91: + :href => html_options[:href] || "javascript:void(0);", 92: :onclick => (html_options[:onclick] ? "#{html_options[:onclick]}; " : "") + "#{function}; return false;" 93: }) 94: ) 95: end