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.
26 March 2025
Example of how to use Data class
I followed up from last week article about value objects with some examples of usage I found in some of my own projects and one from TheOdinProject
25 March 2025
📬 Letter Thief - An emails logger for Rails
Would you like to log emails in your Ruby On Rails app? Letter Thief logs sent emails in your database and can also open them in development. If you used letter_opener you should be familiar with it, but now you can also use it where you don’t have a disk (like Heroku) [more inside]
🚀 Simplify Ruby Gem Development with Docker! 🛠️
If you’re looking for a clean, reproducible way to scaffold a new Ruby gem, check out my latest article! I walk through how to set up a Dockerized development environment with PostgreSQL to ensure a smooth and consistent workflow. [more inside]
Me vs Typical Members of Ruby/Rails Subreddits
Me vs Typical Members of Ruby/Rails Subreddits … https://andymaleh.blogspot.com/2025/03/me-vs-typical-members-of-rubyrails.html
How to configure Postgres as an Accessory with Kamal 2 and Rails 8 on a single server
This guide shows how to deploy a Rails 8 app with a Postgres database using Kamal 2 to a single VPS. It makes up for the lack of documentation around Postgres accessories in the official Kamal docs and helps you avoid common configuration errors connecting to the accessory DB from your Rails app. [more inside]
🚀 Writing Clean, Reusable, and Scalable Code in Rails
As Rails developers, we constantly strive to write efficient, maintainable, and DRY code. In my latest article, I explore: [more inside]
24 March 2025
A Ruby implementation of the HyperLogLog algorithm for efficient cardinality
Hyll is a Ruby implementation of the HyperLogLog algorithm for the count-distinct problem, which efficiently approximates the number of distinct elements in a multiset with minimal memory usage. It supports both standard and Enhanced variants, offering a flexible approach for large-scale applications and providing convenient methods for merging, serialization, and maximum likelihood estimation. [more inside]
23 March 2025
Rubocop Obsession 0.2 released
Rubocop Obsession’s MethodOrder cop now supports and autocorrects the alphabetical style on top of the more classic drill_down and step_down top-to-bottom styles. Ordering methods alphabetically may look unusual at first, but on the flip side it is a reliable and unambiguous ordering style. In any case, it is good to have options!
Rails MCP Server - Enhancing AI-Assisted Development
The Rails MCP Server provides a set of tools that allow Claude to interact directly with my Rails projects. This enables a more seamless workflow when I need AI assistance with my codebase. [more inside]
22 March 2025
21 March 2025
🚀 Mastering State Machines in Ruby on Rails 🚀
In my latest article, I dive into the powerful world of state machines in Ruby on Rails and how you can leverage external gems like state_machines and AASM to manage state transitions effectively. [more inside]
Everything You Need to Know About NodeJS Architecture
Learn everything about Node.js Architecture. Read Here: https://www.creolestudios.com/what-is-nodejs-architecture/
20 March 2025
🚀 Handling File Transfers in a Heroku Environment with Net::SFTP 🌐
As developers, we often face unique challenges when working with cloud platforms. Recently, I had to deal with an interesting issue—downloading a file generated on the fly within a Heroku server. Since Heroku’s filesystem is ephemeral, retrieving the file wasn’t as straightforward as it seemed. [more inside]
How to create value objects in Ruby - the idiomatic way
I wrote an article exploring what I think should be the idiomatic way to create value objects in Ruby since 3.2 [more inside]
Avoiding PaaS Lock-in
Are you using a platform? Ever thought about using a different platform? If so, it probably makes you a little nervous [more inside]
19 March 2025
Ruby OOP Done Right with Responsibility Driven Design
For those who missed it, here is the video of the recent Montreal.rb talk “Ruby OOP Done Right with Responsibility Driven Design”: https://www.youtube.com/watch?v=-KTUZDpMVKU&list=PLRAf4zt5oEjc2mqmEN9m_O0JovQCXxvxt&index=15
Rails 8 Assets - Deep dive into Propshaft
After covering interplay of Propshaft in importmap-rails in the previous article, I covered how Propshaft works in this one: Rails 8 Assets - Deep dive into Propshaft
🚀 Optimizing Your Rails Test Suite with Automated Database Seeding 🚀
When testing a Rails application, ensuring a clean and reliable database state is crucial. Recently, I tackled a challenge where I needed to seed the database before running tests to validate questionnaire imports. [more inside]
18 March 2025
Simple Declarative Presence for Hotwire apps with AnyCable
In this new post, learn how to seamlessly integrate online presence tracking into a Rails application powered by Hotwire and AnyCable: Simple Declarative Presence for Hotwire apps with AnyCable
🚀 Testing RSpec Environments: The Superhero Guide to Setup and Cleanup 🦸♂️
Ever wondered how to tame the chaos of setting up and cleaning up your RSpec test environments? 🧹 [more inside]
Preserving Flash Messages in Rails
Follow the journey through Rails’ source code to explain application behavior with flash messages. [more inside]