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.
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
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.
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
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 about how can use it to render Phlex and ViewComponents for your Rails controller views. ✌️
digest-crc 0.7.0 released!
digest-crc 0.7.0 has been released! This release adds support for CRC64 NVMe, which is apparently used by Amazon S3.
Rails link_to_if and link_to_unless
Tweaking the “conditional render” allows for some useful things to besides the typical navigation example. l💡 [more inside]
Glimmer DSL for Web Wins in Fukuoka Prefecture Future IT Initiative 2025 Competition
Glimmer DSL for Web (Ruby Web Frontend Framework) won an award in the Fukuoka Prefecture Future IT Initiative 2025 competition after I presented it to Yukihiro Matsumoto (the creator of Ruby) and other Fukuoka competition judges earlier this week on January 21, 2025! It’s official! Matz approves of Glimmer DSL for Web!!!
Using Ruby Libraries
Explore Ruby’s libraries ecosystem, covering the Core Library, Standard Library, RubyGems, Bundler, how to load libraries, and manage dependencies. [more inside]
Install Ruby: A Step-By-Step Guide
Learn how to install Ruby on any OS with this step-by-step guide! Discover tips for managing multiple Ruby versions and optimizing your development setup with Ruby on Rails. [more inside]
Pushed First Commits of Frontend Ruby Code Using Glimmer DSL for Web to Job Rails App
I’m happy to report that I officially pushed the first Opal Ruby + Glimmer DSL for Web code commits to my job’s Rails repo in the Admin UI last week. It is just amazing how Glimmer components written in Ruby to replace React components are way simpler and smaller! It’s not even close! My productivity definitely feels double at least while producing about half the code. This is so exciting! It reminds me of the early fun days of discovering Ruby, but on the Frontend! There is so much potential and so many possibilities. It is super exciting to discover new patterns and best practices. Ruby creates so much programmer happiness compared to JavaScript!
Single Line Complexity in Ruby
Interested in improving the maintainability of your Ruby codebase? Check out this new way of detecting difficult-to-maintain code using RuboCop: [more inside]