changed :confirm => 'Text' to :data => {:confirm => 'Text'} 

Avoids Rails 4 deprecation warning.  This format has been acceptable since Rails 3.1. I believe.