views:

31

answers:

1
<%= submit_tag "Delete" , :confirm => 'Are you sure you want to delete the selected?' %>

doesn't work.

how do I do this?

+1  A: 

It should work. Most likely you didn't include necessary JavaScript files. Do you have something like this in your HTML head tag?

<%= javascript_include_tag :defaults %>
Slobodan Kovacevic