How do you add Turbo to your existing Rails app? What do you need to watch out for as you transition to a full HOTWire approach? I found it to be very straight forward, and mostly a search and replace operation. Add Turbo Rails gem to the Gemfile and remove Turbolinks: Then run ./bin/bundle installContinue reading “HOTWiring an Existing Rails Monolith”
Category Archives: ideas
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
Convert your jQuery snippet to a Stimulus controller
Getting started with Stimulus can be as easy as converting a small jQuery snippet into a Stimulus controller. Here are three conventions that will make the conversion really quick. This assumes you’ve setup Stimulus already. ’turbolinks:load’ to connect() Any setup that the jQuery snippet does when the page is loaded can be moved to theContinue reading “Convert your jQuery snippet to a Stimulus controller”
The Cost of Prototyping
“Once out of the realm of little programs, such as the ones you wrote in school, the economics of software take on a strange reversal in which the cheapest programs to own are the ones that are the most expensive to write, and the most expensive programs are the cheapest to write.” – Alan CooperContinue reading “The Cost of Prototyping”
Rails apps past CRUD
I know how to build a blog in Rails with CRUD, what’s next? You’re a beginner, and you feel like you’ve reached a plateau. You’ve done all the tutorials, like how build a blog, and you want some more intermediate ideas for what to try next. You’re might also looking for a type of problemContinue reading “Rails apps past CRUD”