I figured out another way to do this without the JavaScript. The JavaScript also works but it is MUCH easier to just put for example.
<%= link_to "Button Title", "#", data: { confirm: 'Confirm Request' }, class: "btn btn-warning btn-sm", disabled: true %>
Notice I took out the link_path and put in "#" which tells it to go no place at all. Worked for me. :)
I figured out another way to do this without the JavaScript. The JavaScript also works but it is MUCH easier to just put for example.
<%= link_to "Button Title", "#", data: { confirm: 'Confirm Request' }, class: "btn btn-warning btn-sm", disabled: true %>
Notice I took out the link_path and put in "#" which tells it to go no place at all. Worked for me. :)