Joined May 2022
·

Scott Milella

Software Developer at Diesel Emissions Service
·
Redding, CA
·
·
·

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. :)

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills