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.
Montreal.rb January 2025 Talk "Responsibility Driven Design in Ruby"
Learn the basics of Object Oriented Design and how to do Object Oriented Programming the right way in Ruby by watching the Montreal.rb January 2025 talk “Responsibility Driven Design in Ruby”! https://www.youtube.com/watch?v=-KTUZDpMVKU&list=PLRAf4zt5oEjc2mqmEN9m_O0JovQCXxvxt&index=15
🔍 Unlocking Ruby's Object Capabilities 🚀
Ever wondered how to explore what an object can do in Ruby? From checking method availability to handling method_missing, mastering these techniques can make your code more dynamic, flexible, and maintainable! [more inside]
Made a fun little game
Remember those “Choose Your Own Adventure” books back in the day? Well, I made a proof of concept with Rails. You can choose some pre-determined options or customize your own adventure. Choose Your Own Path Article and Link to the App
🚀 Feature Flags in Ruby Made Easy with Flipper! 🎯
Are you looking for a way to roll out new features safely, run A/B tests, or enable instant rollbacks in your Ruby applications? The Flipper gem is a powerful tool that allows you to manage feature flags with flexibility and ease. [more inside]
Four choices for packaging Ruby binary distributions
I wrote https://terminalwire.com/articles/self-contained-ruby-binaries as the first article in a series about how I used Tebako to package up the Terminalwire Client into a binary that could be installed on machines without Ruby. This part focuses on the research process, revisiting the classics like Traveling Ruby and ruby-packer to discover Tebako.
🚀 Boost Your Rails Development with Better Seeding! 🌱
Seeding your database the right way can save time, improve maintainability, and speed up development. In my latest article, I explore: ✅ Best practices for seeding in Rails ✅ How to use find_or_create_by to avoid duplicates ✅ Generating realistic data with Faker ✅ Faster bulk inserts with ActiveRecord-Import ✅ Organizing seeds for different environments If you want to level up your Rails seeding strategy, check it out! 👇 [more inside]
Level Up Your Ruby Skills: From Novice to Wizard! 🧙♂️💎
Are you ready to go from Ruby novice to full-fledged wizard? 🧙♂️ Whether you’re writing your first script or diving deep into metaprogramming, I’ve put together an ultimate guide to mastering Ruby! [more inside]
Ruby on Rails on WebAssembly: a guide to full-stack in‑browser action
Learn how to run a fully functional Ruby on Rails blog in your browser with WebAssembly—no servers needed! This is your complete guide to making Rails Wasm-ready. Read it here: [more inside]
SEOBUD1 keeps posting spam
Are there any moderators here, or can anyone post anything? [more inside]
Simple e-mail service with Rails
I’ve finished a long going beginner tutorial on how to write Simple e-mail service/client using Rails. Utilizing parts of Rails ecosystem (ActiveStorage, ActionMailer, ActionMailbox, Turbo) to showcase Rails capabilities while writing as little code as possible.
Active Record: store vs store_accessor method
A quick introduction to often confused methods for JSON serialization in Active Record: https://www.visuality.pl/posts/active-record---store-vs-store-accessor
The state of security in Rails 8
I finally published the written version of my Rails World talk: https://greg.molnar.io/blog/the-state-of-security-in-rails-8/
Rails async queries by example
Imaging you have a Rails endpoint that has slow queries AND performs third-party HTTP requests. With Rails async queries, you can perform these operations in parallel—without being an expert in multithreading. Read our new article from Julie Kent to learn how
Article on how to fix asdf 0.16.x which "broke" my ruby version
On my computers, I recently updated the packages and asdf was one that got updated. This “broke” my Ruby installation and I wrote up an article on how I fixed it https://blog.driftingruby.com/asdf-0-16-x/
Instant page loading with Signed Exchanges: How mutable subresources break it
Mutable subresources can silently prevent SXG from prefetching your site, slowing down Google-referred users without any visible errors. This deep dive explores what they are and how to detect them. [more inside]
Win a free trip to Sin City Ruby!
]Judoscale is giving away a free ticket to Sin City Ruby INCLUDING HOTEL!! You just need to get yourself there. 😁
Unit tests in Trailblazer: less code, more coverage.
Testing operations in Trailblazer is now much simpler, as we released the trailblazer-test gem. The blog post explains the basics around asserting a successful operation and testing failing ones, mocking steps and how we improved the developer experience.
New gem released "aigcm" AI-powered git commit message generator
I hate seeing empty commit messages or messages like “snapshot” when I review a git log. Who has the time to actually write good commit messages? Let your robot do it!! Check it out at https://github.com/MadBomber/aigcm [more inside]
Flexible API versioning with Rails
A well-defined API versioning strategy is crucial for any API expected to evolve. Let’s explore the most common API versioning strategies and develop a flexible one in Rails. [more inside]