Tutorials

rails/rails-new: Create Rails projects with Ruby installed
You can use this repository to generate a new Rails application without having to install Ruby on your machine.It works by using Docker to generate the Rails application for you. Docker takes care of installing the right Ruby and Rails versions fo...

Building a sortable table with Turbo 8's page refreshes · Colby.so
Scroll-restoring, morphing page refreshes are one of the headline features of Turbo 8. Page refreshes make it easier than ever to build modern, SPA-like experiences with Turbo and Ruby on Rails.One of the most immediate wins for page refreshes is ...

How to add a loading animation to your turbo frame with TailwindCSS | Arkency Blog
How to add a loading animation to your turbo frame with TailwindCSS Ever been working on a project and hit a snag? That’s what happened to me recently. I came across a turbo frame that was slow to load and didn’t show any signs of loading. The eas...

SupeRails 163 Instant page loads with Turbo 8 prefetch (aka InstantClick) - YouTube
Turbo 8 has been released! One of the core new features - hover-click preload acceleration (ala InstantClick).InstantClick makes an assumption about potential user behaviour: now whenever you hover on a link, it will fire a GET request to retrieve...




Flash Messages (notifications) in Rails Apps - DEV Community
The example use of flash messages above work perfectly fine when you are doing a redirect in the controller's action. Still today, after almost 20 years. But today, you can also render something without redirecting the page, using turbo (streams)....

Notes from migrating from Minitest to RSpec, with help from GitHub Copilot | Everyday Rails
After some discussion, my team at work decided to port our newest Ruby on Rails application’s test suite from the default Minitest to RSpec. I picked up the ticket not because I enjoy tedious work, but because I thought it’d be a good excuse to te...