button_to_function (ActionView::Helpers::JavaScriptHelper)

    # File lib/action_view/helpers/javascript_helper.rb, line 67
          def button_to_function(name, function, html_options = {})
            html_options.symbolize_keys!
            tag(:input, html_options.merge({
              :type => "button", :value => name,
              :onclick => (html_options[:onclick] ? "#{html_options[:onclick]}; " : "") + "#{function};"
            }))
          end