Update button_to() helper to correctly handle the 'data-confirm' option.