# File lib/action_view/helpers/form_tag_helper.rb, line 325
      def submit_tag(value = "Save changes", options = {})
        options.stringify_keys!
        
        if disable_with = options.delete("disable_with")
          options["onclick"] = [
            "this.setAttribute('originalValue', this.value)",
            "this.disabled=true",
            "this.value='#{disable_with}'",
            "#{options["onclick"]}",
            "result = (this.form.onsubmit ? (this.form.onsubmit() ? this.form.submit() : false) : this.form.submit())",
            "if (result == false) { this.value = this.getAttribute('originalValue'); this.disabled = false }",
            "return result",
          ].join(";")
        end
          
        tag :input, { "type" => "submit", "name" => "commit", "value" => value }.update(options.stringify_keys)
      end