79075015

Date: 2024-10-10 15:00:13
Score: 1.5
Natty:
Report link

I was also facing the same issue, I found this to solve my issue:

<%= button_to "Destroy this blog", @blog, data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete, class: "btn btn-primary my-2 my-sm-0" %>

where this is the main code for the alert

data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }

Note: It does not matter what you put in the confirm part of the data, just change the text in turbo_confirm to view the changes made.

Reasons:
  • Blacklisted phrase (1): this blog
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: amaan majeed