changed :confirm => 'Text' to :data => {:confirm => 'Text'} to avoid Rails 4 deprecation warning