I have used the x-editable for my in place edit functionality.
https://vitalets.github.io/x-editable/docs.html.
I want to add a delete(my own) functionality in the cancel code button.
<%= link_to "Delete", {controller: "questionnaires", action: "destroy", id: question.id , client_id: @selectedClientId, label: question.label {class: 'table',method: :delete} %>
How to achieve that. I am not able to figure it out. Any help would be highly appreciated
Aucun commentaire:
Enregistrer un commentaire