I have a submit_tag in test.rhtml
I want to add the following popup box onclick:
"Are you sure?"
you can just use the :confirm param at the form_tag. You only have to provide the string for the confirm box and that's it (i.e. :confirm=>'Are you sure?')