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.
đź‘‹ Pry-byetypo: autocorrects typos in your Pry console.
Pry-byetypo is a gem that captures exceptions that may arise from typos and deduces the correct command based on your database information and session history.
How to Dual Boot Your Ruby or Rails Application with Different Versions of Ruby
Dual booting Ruby is similar to any other dependency, but there are some important differences that we need to address to do it right. There are more ways to do this but we try to minimize the disruption to the normal development workflow as much as possible. With these ideas you can default to use the current Ruby version while also being able to use the next version on demand with a few commands. [more inside]
How to debug issues with Turbo Morphing
I collected some tips I found very useful when debugging strange Turbo Morph related issues. I hope they can save you some time when you run into your issues: How to debug issues with Turbo Morphing
Chartkick and turbo frames - elevating rails visuals
https://veelenga.github.io/chartkick-and-turbo-frames-elevating-rails-visuals/
Update: Rabarber Gem - Simplified Authorization for Rails
Some time has passed since we first introduced Rabarber, our role-based authorization library for Ruby on Rails. If you're on the lookout for another option for managing user access in your Rails applications, Rabarber might be worth checking out. [more inside]
Why I’m using justfiles in my Rails apps
Here’s how I’m using the just command runner to build consistent developer experiences across Rails apps, and why you might consider doing the same. https://everydayrails.com/2024/02/24/rails-just-commands
🇺🇦 New version of truemail 📤 has been released 🚀
In the latest truemail release has been added ability to use custom logger for event logging. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists. https://github.com/truemail-rb/truemail
Upcoming March 2024 Montreal.rb Talk "Frontend Ruby with Glimmer DSL for Web"
I will be giving a Montreal.rb Ruby meetup talk titled “Frontend Ruby with Glimmer DSL for Web” on Wednesday, March 6 2024 at 7pm ET (doors open at 6:15pm ET). The event will be hosted at Lexop (Montreal, Quebec, Canada). Click below to read the talk description. In my opinion, this is the most exciting Ruby topic in 2024 for doubling productivity and halving cost and time in developing and maintaining Rails Frontends compared to using inferior JS technologies like React, Angular, Vue, Svelte, etc… I strongly believe this will be the most important Ruby investment in 2024. Anyone who ignores it will be stuck in what is like the Ice Age of Frontend Development by comparison, kinda like riding horse carriage compared to driving a Ferrari. https://andymaleh.blogspot.com/2024/02/upcoming-march-2023-montrealrb-talk.html
Shrinking UUIDv7 Primary Keys
Using UUIDv7 instead of serial integers as primary keys in SQL databases comes with quite a few advantages. There’s a price tag in terms of speed and memory… whether acceptable or not, that’s your call. But at least you don’t have to live with those UUIDs eating up 36 characters in your URLs Honey, let’s shrink them UUIDs!
Rails 7.1 Allows ActiveRecord::Relation#explain To Accept Options
Rails 7.1 introduces analyze and verbose as ActiveRecord::Relation#explain options to give us deeper insight into query performance. [more inside]
Two insights from using Sorbet in a production app
I wrote a small article about two insights I had about using Sorbet in a large Rails app:
Exploring the FFaker Gem - A Comprehensive Guide
https://www.shakacode.com/blog/exploring-the-ffaker-gem/
How to switch ActionMailer to a backup email provider in real time
A new in-depth guide by Garrett Dimon.