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.
Today
Today
Mastering Enums in Rails - FREE Book
Enums is a valuable feature of ActiveRecord, however, RubyonRails newbie developers struggle to learn it and get hold of it. I have written a complete book on “Mastering Enums in Rails” and is published by RailsForge. You can Read it here for FREE. [more inside]
Yesterday
🚀 Unlock the Power of Collection and Container Objects in Ruby on Rails! 🛠️
As developers, we know that managing data efficiently is at the core of building scalable applications. Whether it’s organizing key-value pairs, ensuring data uniqueness, or working with lazy-loaded ActiveRecord collections, mastering collection and container objects is a game-changer. [more inside]
🚀 Want to integrate AI into your Ruby or Ruby on Rails projects?
Check out my latest article, where I explore DeepSeek’s API with a practical Ruby example to generate AI-powered responses. Learn how to make API calls, fetch available models, and handle responses efficiently. [more inside]
Better Know A Ruby Thing: Method Lookup
Been sitting on this for way too long, but here’s a follow up blog post about method lookup in Ruby and how that interacts with singleton classes: [more inside]
Speed up RSpec tests: understand lifecycle and execution
One of RSpec’s strengths is the legibility of its behavior-based DSL. But the proliferation of small example blocks introduces a performance overhead. Why? Because of RSpec lifecycle! Let’s see how we can make your RSpec tests run faster!
Last Sunday
New Ruby on Rails gem for building Intranets
AgileRails is a Ruby on Rails gem for agile programming of Intranet or business applications. You can view introduction videos here: https://www.youtube.com/playlist?list=PLM66pztpUC0DVAqZvIAqH3Khb_RzJdD3W Demo web site here: https://agile-rails.com Source code here: https://github.com/agile-rails
The pragmatic approach to testing Rails applications
What’s the right amount of testing? I am putting my take into words and what it means for my Rails template.
Last Saturday
Small and Little Things Matter in Programming! 🌟
In software development, even the simplest tasks can reveal profound lessons. I recently tackled an interesting Ruby problem: cleaning an array by removing substrings found in other elements. While it sounds straightforward, the solution taught me the power of leveraging Ruby’s enumerable methods like reject and any?. In my latest article, I dive into this challenge, share an elegant solution, and explore why focusing on these ‘small and little things’ can make a big difference in our code. Check it out and let me know your thoughts! [more inside]
🚀 Microservices: Unlocking Agility and Scalability
Microservices have revolutionized how we build software, offering unmatched flexibility, scalability, and resilience. By enabling small, autonomous teams to work independently, microservices empower organizations to innovate faster, adopt new technologies, and scale effortlessly to meet growing demands. [more inside]
Last Friday
Ruby Mixins vs Rails Concerns
It is amazing how cryptic, difficult to reason about, and expensive to maintain Ruby codebases become when they include countless ‘concerns’ without honoring the Ruby naming convention for mixins as representing “traits”… https://andymaleh.blogspot.com/2025/03/ruby-mixins-vs-rails-concerns.html
🚀 Effortlessly Store Your Ruby-Generated Files on Google Drive! 📂
Have you ever struggled with Google Drive API integration in Ruby? I recently tackled this challenge and hit some roadblocks—OAuth headaches, gem conflicts, and those frustrating “API not enabled” errors. 😅 After some debugging (and a few cups of coffee ☕), I found a smooth and enjoyable workflow to automate file storage on Google Drive. Now, creating spreadsheets and managing files is a breeze! [more inside]
Lanet: A lightweight tool for networking
Lanet provides a simple yet powerful API for LAN device discovery, secure messaging, and real-time network monitoring. Features include encrypted communications, network scanning, targeted and broadcast messaging, and host pinging capabilities. [more inside]
Kreds – the Missing Shorthand for Rails Credentials Access
Managing Rails credentials can sometimes lead to hard-to-debug issues when keys are mistyped or values are unexpectedly blank. Kreds is a small gem that provides a shorthand for fetching credentials, raising clear errors for missing keys or empty values. More details here: https://github.com/enjaku4/kreds
Last Thursday
🚀 Reviving a Ruby Project: Cleaning Up Git Branches for Stability
Have you ever worked on a project with messy branches, poor test coverage, and constant deployment issues? Recently, I tackled a Ruby project that needed serious Git cleanup. Spaghetti branches were causing confusion, and deploys were risky. [more inside]
Last Wednesday
Pick the wrong tool for the job
Just published https://terminalwire.com/articles/wrong-tool about how I “chose the wrong tool for the job” by choosing Ruby & Tebako to build a command-line app that users install on their Linux and macOS workstation. Hoping it inspires others to try something that they think is a horrible idea in hopes that they discover new and crazy ideas that actually work.
Ractor - getting started
Learning notes for Ruby Ractors - describe how to create actors, pass the messages between them, types of communication & actors’s lifecycle: Ractor - getting started
Rails 8 assets: Break down of how Propshaft and importmap-rails work together
I wanted to customize Rails 8 default asset setup and I couldn’t find documentation or articles explaining clearly how Propshaft and importmap-rails interact so I ended up writing it: Rails 8 assets: Break down of how Propshaft and importmap-rails work together
🚀 Mastering Iterators in Ruby: Unlock the Power of External and Internal Iteration
As developers, we work with collections every day—arrays, databases, files—you name it. But how often do we stop to think about the best way to traverse them? Iterators are the unsung heroes of clean, efficient code, and understanding their nuances can take your Ruby programming to the next level. [more inside]
Last Tuesday
Migrating From Rails Secrets to Credentials
What I learned about Rails secrets and credentials while upgrading from Rails 7.0 to 7.1 https://danielabaron.me/blog/migrating-from-rails-secrets-to-credentials/
3 March 2025
OmniAI 2.0: An LLM Library for Anthropic, DeepSeek, Google, Mistral and OpenAI
I’m excited to share the release of OmniAI 2.0. OmniAI now offers a unified API for processing tool-call requests while streaming, standardizes the response API between streaming and regular requests, and fully includes a dedicate DeepSeek client. For more info about the release see: [more inside]