def button_to(*arguments, &block)
      if block_given?
        body = block
        url = arguments[0]
        html_options = arguments[1] || {}
      else
        body = arguments[0]
        url = arguments[1]
        html_options = arguments[2] || {}
      end

      if block_given?
        super(url, html_options, &body)
      else
        super(url, html_options) { body }
      end
    end
def button_to(*arguments, &block)
      if block_given?
        body = block
        url = arguments[0]
        html_options = arguments[1] || {}
      else
        body = arguments[0]
        url = arguments[1]
        html_options = arguments[2] || {}
      end

      if block_given?
        super(url, html_options, &body)
      else
        super(url, html_options) { body }
      end
    end
Public: Overrides button_to so it always renders buttons instead of
 input tags.

 arguments - The same arguments that would be sent to `button_to`.
 block     - An optional block to be sent.

 Returns a button.