# File lib/action_view/helpers/javascript_helper.rb, line 84 def button_to_function(name, function=nil, html_options={}) ActiveSupport::Deprecation.warn("button_to_function is deprecated and will be removed from Rails 4.0") onclick = "#{"#{html_options[:onclick]}; " if html_options[:onclick]}#{function};" tag(:input, html_options.merge(:type => 'button', :value => name, :onclick => onclick)) end