Configures and manages JavaScript integration in Ruby on Rails applications using modern standards like Import Maps, Turbo, and popular bundlers.
This skill guides developers through the evolving landscape of JavaScript in Rails 7+, providing expert assistance for choosing between Import Maps and Node-based bundlers like Bun or esbuild. It streamlines the transition from legacy Rails UJS to modern Hotwire (Turbo) conventions, automates the setup of request handling with Request.JS, and ensures CSRF-compliant Ajax operations. Whether you are starting a new project or migrating an existing one, it provides the patterns and commands necessary for a robust, efficient client-side architecture.
Key Features
01Provides migration paths from Rails UJS to Turbo-native methods
02Automates package pinning and management via importmap-rails
03Configures Request.JS for CSRF-safe Ajax operations
04Implements Turbo helpers for modern client-side interactivity
05Selects and configures JS strategies including Import Maps and jsbundling-rails
060 GitHub stars
Use Cases
01Migrating a Rails 6 application from Webpacker to Import Maps or esbuild
02Replacing legacy UJS data-confirm or data-method attributes with Turbo equivalents
03Implementing AJAX requests with CSRF protection using Request.JS