Home:ALL Converter>sweetalert2 is not working fine

sweetalert2 is not working fine

Ask Time:2018-02-26T17:33:02         Author:akshara

Json Formatter

I'm using rails 5, Now trying to use SweetAlert2 for data confirmation prompt, SweetAlert2 prompt is appearing but not deleting the data and showing warning in console like this

SweetAlert2: Unknown parameter "method"

is this an issue or anything else?? Thanks in advance

In my application.js file

//= require sweetalert2
//= require jquery
//= require jquery_ujs
//= require sweet-alert-confirm
//= require_tree .

In my gem file

gem 'rails-assets-sweetalert2', source: 'https://rails-assets.org'
gem 'sweet-alert-confirm'

In my index.html.erb

method: delete, data: { confirm: 'are you sure?' }

Author:akshara,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48985227/sweetalert2-is-not-working-fine
yy