You want <%= f.submit :confirm => 'Your confirm message' %>
. Just FYI, this is just the short hand for the javascript call.
Edit:
As stated in other answers, the new way to have a popup confirm is:
<%= f.submit 'Save', data: { confirm: 'Your confirm message' } %>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…