This project is archived and is in readonly mode.

#6669 new
Martin Troels "DarkFox" Eberhardt

UJS-prototype: :confirm does not work on a button_to

Reported by Martin Troels "DarkFox" Eberhardt | April 4th, 2011 @ 11:47 AM

This issue seems to stem from rails.js only checking for data-confirm on the element, and not on the button that is clicked.

Example code:
<%= button_to 'confirm', example_path, :confirm => 'Are you sure?'%>

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages