<%= submit_tag "Delete" , :confirm => 'Are you sure you want to delete the selected?' %>
doesn't work.
how do I do this?
<%= submit_tag "Delete" , :confirm => 'Are you sure you want to delete the selected?' %>
doesn't work.
how do I do this?
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 %>