The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Article on how to fix asdf 0.16.x which "broke" my ruby version
On my computers, I recently updated the packages and asdf was one that got updated. This “broke” my Ruby installation and I wrote up an article on how I fixed it https://blog.driftingruby.com/asdf-0-16-x/
Instant page loading with Signed Exchanges: How mutable subresources break it
Mutable subresources can silently prevent SXG from prefetching your site, slowing down Google-referred users without any visible errors. This deep dive explores what they are and how to detect them. [more inside]
Win a free trip to Sin City Ruby!
]Judoscale is giving away a free ticket to Sin City Ruby INCLUDING HOTEL!! You just need to get yourself there. 😁
Unit tests in Trailblazer: less code, more coverage.
Testing operations in Trailblazer is now much simpler, as we released the trailblazer-test gem. The blog post explains the basics around asserting a successful operation and testing failing ones, mocking steps and how we improved the developer experience.
New gem released "aigcm" AI-powered git commit message generator
I hate seeing empty commit messages or messages like “snapshot” when I review a git log. Who has the time to actually write good commit messages? Let your robot do it!! Check it out at https://github.com/MadBomber/aigcm [more inside]
Flexible API versioning with Rails
A well-defined API versioning strategy is crucial for any API expected to evolve. Let’s explore the most common API versioning strategies and develop a flexible one in Rails. [more inside]
How to Integrate React with Ruby on Rails: A Complete 2025 Guide
Integrating React with Ruby on Rails is a powerful way to build modern full-stack applications. https://jsdev.space/howto/react-ruby/
Ruby Programmer Happiness Explained!
‘Ruby Programmer Happiness’ means ‘happiness for having the ability to deliver useful business value to customers as productively and as simply as possible with the ability to maintain the code with very little effort for years to come’… https://andymaleh.blogspot.com/2025/02/ruby-programmer-happiness-explained.html
Self-Hosted App to a Multi Tenant Hosted App – Postgres Schemas in Rails
I had to convert a self-hosted app into a multi-tenant hosted one and used Postgres Schemas to make it happen. I’ve documented the process and also shared some insights in this post https://vinioyama.com/blog/changing-a-self-hosted-app-to-a-multi-tenant-hosted-app-postgres-schemas-in-ruby-on-rails/
ruby-install 0.10.0 released
Released ruby-install 0.10.0! This release contains many small improvements to usability and better support for building CRuby with jemalloc or YJIT enabled. [more inside]
How to avoid problems with Turbo morphing
Turbo 8 morphing is usually talked about in two opposites: how great it is and how frustrating it is when it breaks something. I’ve gathered all the approaches I know about how to solve problems with morphing: How to avoid problems with Turbo morphing
Benchmarking caching in Rails with Redis vs the alternatives
With the rise of Redis alternatives claiming better performance, we put them to the test. This benchmarking compares Redis with Valkey, DragonflyDB, DiceDB, and Rails SolidCache (both PostgreSQL and sqlite3 variants), along with litecache. [more inside]
Hacking Rails controller actions and rendering
https://terminalwire.com/articles/rails-implicit-rendering shows how the Rails method_for_action
controller method can be overridden to build gems like Superview, which renders Phlex and ViewComponent’s for views, or build controllers that can handle bulk form actions, including securing each individual bulk action with a before_filter
.
Use a moving average calculation to predict estimated time remaining
Hi. I wrote an article about how to use a moving average calculation to predict estimated time remaining while updating progress bar with turbo stream. [more inside]
Outlets and Permanent Tags
In this episode, we’ll explore how we can add a “global” music player that will persist across different pages. Our approach will be unobtrusive and implemented in a maintainable way. https://www.driftingruby.com/episodes/outlets-and-permanent-tags
How a Ruby Upgrade Broke MS Edge Support in a Rails App
A Ruby upgrade and gem updates unexpectedly broke Microsoft Edge support in our Rails app - here’s how we debugged and fixed it https://danielabaron.me/blog/ruby-upgrade-broke-ms-edge/
Rails Database Migrations Best Practices
Have you ever found yourself wondering how to best manage your database migrations in Rails? [more inside]
Setting up Cloudflare R2 buckets for Active Storage
Here’s how to set up Cloudflare R2 as an Active Storage backend.
Build Rails Apps with Components
I released Superview 1.0 and wrote at https://terminalwire.com/articles/superview about how can use it to render Phlex and ViewComponents for your Rails controller views. ✌️