Created
October 6, 2022 18:29
-
-
Save FanaHOVA/0f23dcf699fbd7c41b688f5c05013378 to your computer and use it in GitHub Desktop.
How to use turbo-confirm alongside data-action with Rails / Stimulus / Turbo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= button_to path, form: { data: { action: 'controller#method', turbo_confirm: 'Are you sure?' } } do %> | |
<i class='fa fa-check' /> Do The Thing | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment