I wrote in my view : (haml)
= button_to I18n.t(:cancel_my_account), user_registration_path(resource), :confirm => I18n.t(:are_you_sure), :method => :delete, :title =>I18n.t(:cancel_my_account)
which generates the html code : <form method="post" action="/users.4cfc1725a326cb1d3200000a? locale=en" class="button_to"> <div> <input name="_method" type="hidden" value="delete" /> <input data-confirm="Are you sure?" title="Cancel my account" type="submit" value="Cancel my account" /> <input name="authenticity_token" type="hidden" value="V +oNGXlJirt0WmgkDJRKzUcCMzSIpoxPfJ48NUyWgqU=" /> </div> </form>
but the confirm panel doesn't show up... it goes directly to the delete action .. any clue ?
thanks fyh.
note : I have the csrf tags in my <head>