<!-- Rails 4 Beta and above - Latest version 7.0.2.3 as of 8 March, 2022 --> <%= form.submit "Save", id: "button_id", class: "button", data: {disable_with: "Submitting..."} %>