Permalink
Browse files

use data-confirm option as :confirm was deprecated in rails 3.2.6

  • Loading branch information...
1 parent 1c4faa7 commit 13f35d80a99fb4829710024774a670da97c3c841 @nashby nashby committed Jun 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/devise/registrations/edit.html.erb
@@ -20,6 +20,6 @@
<h3>Cancel my account</h3>
-<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>
+<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %>.</p>
<%= link_to "Back", :back %>

0 comments on commit 13f35d8

Please sign in to comment.