Updated tutorial: send a PATCH request when a checkbox is toggled to update a Rails model attribute without a page reload.
Display your Progressive Web App’s Offline Ability
Your progressive web app works offline, but do your users know that? You can use a Stimulus controller to manage your service worker, show the caching status, and hint to your user that the webpage will work offline.
Introducing Mailbox Tester
Introducing Mailbox Tester, a dev tool for testing Rails ActionMailbox inbound email workflows without real emails.
Testing Tables in ActionText Using System Test
Write Capybara system tests for custom ActionText table extensions built with Stimulus.js.
Adding Tables to ActionText With Stimulus.js
Extend the Trix editor in Rails to support inserting and editing HTML tables inside ActionText content using Stimulus.js.
Radio Selection Unselect with Stimulus.js
Build a Stimulus.js controller that lets users click a selected radio button again to deselect it.
Using CSS in Rails 6
A practical overview of CSS bundling in Rails 6: Webpacker, the asset pipeline, and when to use each.
Yes, Rails does support Progressive Web Apps
Rails has everything you need to build a Progressive Web App — learn how to add a service worker and web manifest.
HNPWA With Rails + Stimulus.js
Sometimes you want a development side project that will push you. A project that is non trivial, and provides lots of opportunities to build a complicated, data hungry application. Here is an example of such a project that rivals any complicated website in performance, and interactivity, built entirely in Ruby on Rails and Stimulus.js
Using Stimulus to Manage Stripe Elements
Wire up Stripe Elements to a Rails checkout form using a Stimulus.js controller for clean, encapsulated payment handling.