Short Ruby Newsletter - edition 122

The one with a new markdown editor for Rails, benchmarks caching solutions for Rails and 18 inspiring Ruby and Rails code samples

In partnership with

Table of Contents

(ad)

There’s a reason 400,000 professionals read this daily.

Join The AI Report, trusted by 400,000+ professionals at Google, Microsoft, and OpenAI. Get daily insights, tools, and strategies to master practical AI skills that drive results.

Sign up now for free and work smarter, not harder.

🚀 Launches and discounts

🚀 Adrian Marin announced a new markdown editor MARKSMITH. Link to Github repo

📅 Events

 📅 On 28 February 2025, there will be the Ruby Community Conference in Poland. If you want to join there are still tickets available:

📅 This week there are 18 meetups happening all around the world: check https://rubyconferences.org/meetups/ to see where they are happening:

📅 Boulder Ruby shared an event Boulder Ruby Feb 2025 Presentation Night · Luma

Source: @boulderruby

📅 Vienna.Rb shared an event vienna.rb #63 - Ruby Spring Meetup, Thu, Mar 6, 2025, 6:30 PM | Meetup

Source: @viennarb

👉 All about Code and Ruby

👉 Nagachika announced a new Ruby 3.2.7 Release:

👉 Sandip Mane published a new article about Benchmarking caching in Rails with Redis vs the alternatives

👉 Petr Hlavicka published a new article about Flexible API versioning with Rails:

👉 Jeremy Smith published an article about Upgrading a Rails App to Tailwind v4

💻 Code Samples

️💻 Josh Branchaud shared about string slice feature https://github.com/jbranchaud/til/blob/master/ruby/extract-capture-group-matches-with-string-slices.md

and Gregory Brown added:

💻 Gregory Brown shared a thread about bug hunting:

and he asked some questions based on the code he shared (please visit and see the full code on Bluesky):

💻 Joel Drapper shared a thread about using postfix conditional expressions

and he also showed an example of how hash keys are silently deduplicated :

💻 Chris Blunt shared a code sample about working with Kamal on a Rails app

️💻 Bugloper shared some ways to output an array of hashes with y & j commands ( YAML & JSON formatter ) in IRB:

Source: @bugloper

️💻 Igor Alexandrov shared a way to extend “has_many“ associations with a custom method

️💻 Ruby Cademy shared a snippet of how to create inheritable class-level attributes

Source: @RubyCademy

️💻 Jonathan Frias shared a post about non-Active Record objects

️💻 Ruby Cademy shared about method and class attribute naming conflicts

Source: @RubyCademy

️💻 Jorge Manrubia shared a snippet about Active Record Search:

Source: @jorgemanru

️💻 Brad Gessler shared a thread about Rails controllers

Source: @bradgessler

Source: @bradgessler

Source: @bradgessler

️💻 Benjamín Silva shared a way of testing the cache:

Source: @bsilva96

and there is his implementation:

Source: @bsilva96

️💻 Ruby Cademy shared a post about Replacing ActiveRecord enums

Source: @RubyCademy

️💻 Brad Gessler shared about using it in a blog and calling a proc:

Source: @bradgessler

️💻 Collin shared about using it named parameter:

and ️Marco Roth responded to this post with :

Source: @marcoroth_

💻 Andrea Fomera posted about learning and building a version system for APIs

Source: @afomera.dev

Source: @afomera.dev

Andrea Fomera received some suggestions and implemented modifications.

Source: @afomera.dev

Click here for the full post and code snippet.

💻 Scott Watermasysk shared a code sample to demonstrate the difference for date precision between OS X and Linux

Source: @scottw.com

He also posted the results of this code sample:

Source: @scottw.com

️💻 Rich Steinmetz shared an observation about Ruby and Minitest method naming

Source: @RichStoneIO

and he continued with a suggestion:

Source: @RichStoneIO

📐 Thinking about Code Design

️📐 Rob Zolkos shared about removing extra gems and relying on Rails auth generator:

Source: @robzolkos

and Christian Genco asked:

Source: @robzolkos

Rob Zolkos responded with:

Source: @robzolkos

️📐 Nicolás Galdámez asked the community about job scheduling with Kamal

and Juraj Kostolansky answered:

Source: @jkostolansky

️📐 Vladimir Dementyev shared some interesting improvements of Action Cable Next GitHub - anycable/actioncable-next: Next-gen Action Cable implementation

Link to this project repository: actioncable-next

Source: @palkan_tula

️📐 Jeremy Smith posted a thread about his experience of upgrading a Rails app to Tailwind v4 ( please visit and see the full thread for more explanations )

He started to explain the first steps of this process

He also encourage you to check tailwindcss docs when doing this upgrade

The links provided from his messages:

️📐 Gavin Morrice shared about reasons why people use Service Objects:

Source: @juliknl

️📐 Donn Felker shared how testing enabled smooth Rails upgrade

Source: @donnfelker

💡Around code (news, findings, books, and more - all about Ruby)

💡 Dean De Hart shared about hiring junior developers:

Source: @Deaniocom

💡 Ruby On Rails announced that Clio joins the Rails Foundation as a Contributing member

Source: @rails

💡 Zil N asked for the most impressive Rails apps in order to find inspiration

Source: @zilasino

and he got some recommendations of projects from other people:

and there are more in the replies on Twitter.

💡 Ruby Central shared a job opportunity

💡 Michael Chaney shared his experience with building Rails apps:

💡 Stanislav Katkov shared what he found out about the TRMNL startup

💡 Steve Ike asked the community to share their favorite Rails apps that they use or are building

Source: @steve_ike_

Here is a list of companies/projects extracted from this thread:

💡 Kant asked about choosing frameworks

Source: @_kant01

and got a response from Andreas Finger

❤️ Why Choose Ruby and Rails

❤️ Darksea shared his appreciation for Rails framework

Source: @darkseadev

❤️ Rails Ui shared that he likes the frontend options offered by Rails

Source: @railsui_

❤️ Robert shared some thoughts of building small Ruby apps

🧰 Gems, Libraries, Tools and Updates

🆕 New Gems and Repos

🆕 Mark Hesketh announced his new gem GitHub - markahesketh/rustywind-ruby: A Ruby wrapper for rustywind, a CLI utility for sorting Tailwind CSS classes

and also wrote an article about this gem: https://www.markhesketh.com/blog/introducing-rustywind-ruby

🧰 Updates

🧰 Avo for Ruby on Rails announced a release of version v3.17.0, coming with big changes:

Source: @avohq.io

Source: @avohq.io

🧰 postmodern-mod3.bsky.social announced a new release on ruby-install

🧰 David Heinemeier Hansson announced a new version of Release v2.5.0 · basecamp/kamal · GitHub

Source: @dhh

🧰 David Heinemeier Hansson shared Release v1.1.6 · basecamp/omakub · GitHub

Source: @dhh

🧰 Greg Molnar announced a new version of ransack

🧰 Any Cable announced a new version of anycable/anycasts_demo: Demo applications used in AnyCasts

Source: @any_cable

🧰 Koichi Ito announced a new version of webmock | RubyGems.org | your community gem host

Source: @koic

🧰 Brad Gessler announced a new version of https://github.com/rubymonolith/uri-builder

🧰 Vitaly Slobodin announced an update about Ruby extension for zed → Bump Ruby to v0.4.4 by vitallium · Pull Request #1991 · zed-industries/extensions

🤝 Paweł Świątkowski shared his thoughts about “Modified TDD“ idea

🤝 Jonathan Reinink shared a thread about about Intertia.js project

Source: @reinink

Source: @reinink

👉 Gergely Orosz made a post about the unique behavior and mindset of software developers as customers, particularly regarding developer tools and services

🤝 Jorge Manrubia shared some thoughts about writing

Source: @jorgemanru

🤝 Jorge Manrubia posted some advices for software design

Source: @jorgemanru

🤝 Catalin Pit talks about database technology choices

Source: @catalinmpit

🤝 Schappi shared a trick for zsh/bash scripting

Source: @schappi.com

More content: 📚 🗞 🎧 🎥 ✍🏾

👉 Charles Oliver Nutter shared his slides from FOSDEM 2025 about Invokedynamic in Practice with JRuby

🗞 Newsletters

🗞 Any Cable published a new edition of Any Cables Monthly #26

🗞 Ruby Weekly published a new article about Ruby on Rails on WebAssembly

🗞 Ruby On Rails published a new edition about Ruby on Rails — Support joins in update_all for PG and SQLite and more

🗞 Hotwire Weekly published a new edition about Week 06 - Avoid Turbo Morphing Pitfalls, New Markdown Editor, and more! 

🗞 Andy Croll published a new edition of One Ruby Thing about Ordinal Numbers in Rails: 1st, 2nd, 3rd, 4th

🗞 Awesome Ruby Newsletter published a new article about 💎 Issue 455 - Ruby "Thread Contention" is simply GVL Queuing | Island94.org

🎧 Podcasts

🎧 David Hill shared a podcast : Cindy Backman - Ode to RailsConf

🎧 IndieRails shared a podcast: IndieRails | Jim Remsik - Genuinely Desiring Success In Those Around Him

🎧 Joel Drapper shared a podcast where he was interviewed: Zero Allocations | Dead Code

🎧 Ruby Rogues published a new podcast about SQLite Awesomeness with Stephen Margheim ( provided YT link )

🎧 Jason Swett published a new podcast about The Code with Jason Podcast - Code with Jason

🎧 Jason Charnes, Chris Oliver, Andrew Mason published a new article about High Leverage Rails & SQLite with Stephen Margheim

🎧 The Bike Shed published a new article about 454: Workshop design with Aji Slater

🎥 Videos

🎥 Drifting Ruby published a new video about Outlets and Permanent Tags and about Episode 495 - Normalizes

🎥 Ken Greeff published a new video about Ken Greeff | Tracking Link Clicks for Outbound Analytics - Part 11

🎥 Kaleb Lape published a new video about Rails 8 Tutorial: Instant CSS & Stimulus Updates with Hotwire Spark (Zero Config!)

🎥 Jason Swett published a new article about Capturing Individual Test Data - Live Coding on SaturnCI

✍🏾 Articles

What’s new 🆕

Jean Boussier published a new article about Guardrails Are Not Code Smells

Petr Hlavicka published a new article about Flexible API versioning with Rails

Jeremy Smith published an article about Upgrading a Rails App to Tailwind v4

Brad Gessler published an article about Hacking Rails controller actions and rendering

Pat Shaughnessy published a new article about Inserting One New Element into Hashes of Varying Sizes

Paweł Świątkowski shared an article about On validations and the nature of commands

Rails Designer published a new article about Build a Notion-like editor with Rails

Jeremy Kreutzbender shared an article about Using PostgreSQL Functions with Rocicorp's Zero and Ruby on Rails

Jared White shared an article about Finding My Happy Place with Hanami and Serbea Templates

RoRVs Wild published a new article about Optimize Pagination Speed with Asynchronous Queries in Ruby on Rails

Zeke Gabrielse published a new article about Self-promotion

Andrew Vogel and Matt Polito published a new article about Broadcasting User Specific Turbo Content

Jason Swett published a new article about Meatspace abstractions

Avi Flombaum published a new article about Principles and Values

Yuta Kusuno published a new article about [Rails] How We Reduced API Response Rendering Time by 30%

Fritz Meissner published a new article about Reasons not to refactor

Davide Santagelo published an article about A Novel Approach for Text Encryption Using Tokenizers in Ruby and about Davide Santangelo published an article about Building a Tiny Language Model (LLM) in Ruby: A Step-by-Step Guide - V3 "Integrating Reasoning into the Tiny LLM

Maciek Korsan published an article about Improve your user experience with Turbo Frames

Jonatas Davi Paganini published an article about Building a better Ruby ORM for time series and analytics

App Signal published a new article about AppSignal Now Offers Support for Long-Running Streaming Rack Responses in Ruby

Vini Oyama published an article about Changing a Self-Hosted App to a Multi Tenant Hosted App - Postgres Schemas in Rails

How-TOs 📝

Tristan Dunn published an article about Deploy a Rails Template with Kamal

Radan shared an article about How to avoid problems with Turbo morphing

Moses Gathuku published a new article with Hotwire Examples

Victor Cobos published a new article about Enhancing Esbuild Error Handling in a Rails App

Nick K. published an article about moving average calculation for activejob rails

Olly Headey shared an article about Understanding how lists behave in your email editor

Zeke Gabrielse published a new article about Imposter syndrome

Rich Steinmetz published a new article about Setting up your Mac to make you 1% better (as a developeur)

Jon Sullivan published a new article about A Few Goals For My Next Decade

Jon Sully published an article about Small Teams Need PaaS-Ops, Not DevOps

All issues