Stimulus.js Tutorial: Interactive Deletes with Rails UJS
By wrapping the deletable element in a controller and hooking into the Rails-UJS callbacks, you can make your page feel fast, even while the network request and response occur in the background. This tutorial is an attempt to make Rails’ remote deletion mechanism, which uses UJS, feel more immediate. https://johnbeatty.co/2019/02/27/stimulus-js-tutorial-interactive-deletes-with-rails-ujs/
Post a comment