in Rails 4.1 confirm option will be deprecated. Changed to :data => { :confirm => text}