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.
We need to talk about interactors
A deep dive into the usage of interactors and some of the issues around it [more inside]
Thot a simple templating tool
Thot is THe Operative Templating, available as a gem https://rubygems.org/gems/thot and Github https://github.com/Ultragreen/thot. The main principe behind Thot is to KISS. [more inside]
Introduction to Rails Engines
Rails engines provide a powerful way to organize and share code within a larger Rails application. By breaking up your application into smaller, self-contained modules, you can make your codebase more manageable and easier to maintain. [more inside]
Using Rails Credentials instead of .env — How and Why
I wrote up another blog post going over how to use Rails Credentials, and why you might want to. Spoiler — they’re really handy!
An introduction to the gateway pattern and when to use it in Rails
You can use gateway classes to organize external API integrations and establish a clearer separation of concerns.
Leveling Up For Juniors With CodeWithJulie | Rubber Duck Dev Show 85
In this episode, we discuss leveling up junior developers with CodeWithJulie:
The Mysterious Time-to-DateTime Conversion: Unraveling Ruby’s Unexpected Behavior
I recently stumbled upon a perplexing discrepancy while converting Time to DateTime using the #to_datetime method. Intrigued by this unexpected behavior, I delved into an investigation to unravel its root cause. I’ll share my findings in this blog post with you, as I believe it’s worth your attention.
rails-brotli-cache gem release
Drop-in enhancement for Rails cache, offering better performance and compression with Brotli algorithm. [more inside]
rest-man release
Simple HTTP and REST client for Ruby
Launch: Fixed-cost, Monthly Maintenance Services by FastRuby.io
“The typical development organization can increase their feature delivery efficiency by at least 25% by managing technical debt. That’s the equivalent of having 25% more developers without additional staffing costs or coordination needs.” [more inside]
Implementing an LLM Agent to complete tasks using Google with Ruby
I’m continuing to tinker with creating LLM-powered apps using Ruby (not Python - what ?!). In this post, I show how to create an LLM agent that can fetch data from Google and a Rails database.
Rails 7.1 adds support for responsive images
Rails 7.1 adds picture_tag, which is a more “robust” version of the image_tag. It supports resolution switching, art direction, and fallback image. Read here:
Rails 7.1 adds ActiveRecord::Base::normalizes API for attribute values
I have published a blog on the Rails 7.1 adds ActiveRecord::Base::normalizes API for attribute values. [more inside]
Manage Your Ruby Logs Like a Pro
Discover the ins and outs of logging in Ruby, including how to customize your logs and use logging libraries like Lograge:
Refactoring to use ActionMailer — a beginners intro
Hey RF! I recently refactored an app to use ActionMailer and wrote up an article with some of the stuff I learned. In the post, I’ve also included a few tricks to make organising Mailer views a bit cleaner. Enjoy!
Power Home Remodeling's Majestic Rails Monolith Increases Server Speed by 40%
The Tune Report, product of a collaboration between FastRuby.io and Speedshop, proved instrumental in identifying optimization opportunities, leading to a significant decrease in average page load time, from 5 to 3 seconds. [more inside]