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.
đ Want to Build Your Own AI Chatbot? Hereâs How! đ€
AI chatbots are changing the way we interact with technology, and now, you can build one yourself! Iâve written a detailed step-by-step guide on how to create a complete AI chatbot using Ruby and DeepSeek â with full code examples. Read more
Caching Strategies for Ultra-High Performance in Ruby on Rails, Part 1
When it comes to optimizing web applications, a proper caching strategy is critical because it can significantly reduce load times and improve the overall user experience. This is especially true for Ruby on Rails applications, where performance can often experience bottlenecks due to heavy database queries or complex view rendering. Read more
Cloud hosting comparison calculator
Iâve been wanting a tool to compare prices side-by-side for Heroku, Fly, Render, etc., so I built one.
Building a Multi-Page guided tour with Rails + Driver.js
Learn to set up a multi-page guided tour in Rails with Driver.js. Integrate frontend and backend to manage and connect tours across pages. Read more
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. Read more
đ 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. Read more
đ 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. Read more
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: Read more
Predownloading embedding models in Rails with Kamal
Learn how to predownload embedding models in Ruby.
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!
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.
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! Read more
đ 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. Read more
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ââŠ
đ 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! Read more
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. Read more
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:
đ 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. Read more
Bulk Migrations by Passing validate(_check)_constraint through change_table
Rails 7.1 now delegates validate(_check)_constraint through change_table for bulk migrations by letting us define and validate check constraints within a single change_table block. Read more
Pick the wrong tool for the job
Just published 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