<%= link_to "Delete",(@article) ,method:"delete",data: { confirm: 'Are you sure you want to delete ?' } %>
I have a rails app which lets the user create an account, post, delete and update comments, and get notifications using rails and Jquery.
When I click the buttons which include confirm messages do not work until I refresh the page. Why ? What should I do ?
after removing the <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
from the application,It saves the updates directly without alerting useres
Aucun commentaire:
Enregistrer un commentaire