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.
How to switch ActionMailer to a backup email provider in real time
A new in-depth guide by Garrett Dimon.
A decent VS Code + Ruby on Rails setup
I just published a VS Code + Ruby on Rails extensions guide. Alongside that, I released a VS Code extension pack with all the extensions I use!
Rails 7 pagination with Kaminari tutorial
Adding pagination with Kaminari, an alternative to the Pagy gem [more inside]
Business Class 1.6 with direct uploads, Kamal CI/CD, and more
Business Class, a Ruby on Rails starter kit, gets a new release. Direct uploads, antispam, blog post previews, and Kamal CD.
Building a 2 Terabyte Database For My Postgres Course | Rubber Duck Dev Show 116
In this episode, we discuss how Creston built a 2 terabyte database for his new Postgres performance optimization course: https://www.rubberduckdevshow.com/episodes/116-building-2-terabyte-database-for-postgres-course/
Turbo Sortable, Paginated Tables in Rails 7
Article on how to create sortable, paginated tables powered by Turbo and Rails 8 [more inside]
v0.5.11 of the aia was released this weekend
Announcing the release of aia (AI Assistant) gem, version 0.5.11. For those of you who are passionate about enhancing your command-line interface (CLI) with AI capabilities, you’ll find this update particularly exciting. [more inside]
Be more GARY: Upping your RSpec Game
The DRY principle (Don’t Repeat Yourself) is great for keeping your executable code clean, but it can get in the way of writing meaningful, readable, understandable tests. Introducing the GARY principle – Go Ahead, Repeat Yourself. [more inside]
How to Dual Boot Ruby on Rails In Docker
Starting with Rails 7.1, Docker files are added by default in new applications, but Docker has been popular for Rails development for many years before that. [more inside]
Presence, NULL, and Product Requirements in Rails
A short article why NOT NULL constraints are essential for long-term product health. Read it at https://www.gregnavis.com/articles/presence-null-and-product-requirements-in-rails.html
Ruby Dev Summit 2024 Interview w/ Andy Maleh
Recently, I was interviewed for the 2024 Ruby Dev Summit, and a video podcast of the interview was just posted online and is available to watch for free for the next 24 hours (Fri, Feb 16 3pm ET till Sat, Feb 17 3pm ET). Also, an audio podcast was published in the Ruby Rogues podcast. [more inside]
The joy of creating your own toolkit
Read about the Neovim plugin that makes running RSpec from within Neovim effortless, and the story of its latest update. https://dev.to/melopilosyan/the-joy-of-creating-your-own-toolkit-34fl
Rails 7.1 allows resetting singular associations
Rails 7.1 allows resetting the cache on singular associations by querying the database again to retrieve the associated record. [more inside]
Ruby-on-Rails ERB vs HAML
This is an opinionated article about ERB and HAML with Rails. Let’s compare each other and pick a winner. https://bootrails.com/blog/erb-vs-haml/
The Unpredictable Nature of Flaky Tests in Rails Applications (And How to Debug Them)
How many times have you or someone on your team brushed off a failing build with a casual, ‘It’s fine, it’s just a flaky spec—ignore it’? [more inside]
“Fair” multi-tenant prioritization of Sidekiq jobs—and our gem for it!
For multi-tenant backend apps, managing a background job queue in a “fair” way can be difficult. In this post, we’ll show and explain a potential solution for your Rails and Sidekiq apps, and present our new Ruby gem to implement it. [more inside]
Visualizing Ahoy analytics in Rails
In this article, Honeybadger co-founder Joshua Wood explains how to graph Ahoy page views in Rails with Chartkick, with a preview of our upcoming observability tool—Insights! Read the full article here.
Authentication vs Authorization with Rails 7
A small tutorial to understand the difference between authorization and authentication [more inside]