Progressively enhanced confirmation dialogs for Rails actions
TODO
Install the gem
gem install confirmable
Mount the engine
mount Confirmable::Engine => '/confirm'
Use the URL helper in your views
<%= confirm_link_to 'Destroy', widget, method: :delete %>
-
Progressive enhancements!!
-
try to deal with forms
-
try to deal with model forms
-
try to deal non-POST actions