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.
rest-man release
Simple HTTP and REST client for Ruby https://github.com/rest-man/rest-man
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: https://www.shivamchahar.com/posts/rails-7.1-adds-responsive-images
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: https://blog.appsignal.com/2023/05/17/manage-your-ruby-logs-like-a-pro.html
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! https://monn.app/blog/refactoring-a-ruby-on-rails-app-to-use-actionmailer-for-transactional-email
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]
Advanced techniques for calling HTTP APIs in Ruby
I’ve written a pattern catalog of techniques for building robust, fault-tolerant Ruby code for making HTTP requests. It covers the following topics, with examples: [more inside]
Flog-Driven Development
This post explores how flog, a tool that analyzes the complexity of your code, can identify areas to refactor. https://kevinjmurphy.com/posts/flog-driven-development/
Chroma Vector Database Ruby client
Today I’m releasing a gem called chroma-db which is a Ruby client for Chroma Vector Database. [more inside]
Hotwires & Cookbooks With Andrea Rocca | Rubber Duck Dev Show 84
In this episode, we discuss Hotwire (HTML Over the Wire) concepts and usage (along with a Cookbook) with Andrea Rocca: https://www.rubberduckdevshow.com/episodes/84-hotwires-and-cookbooks-with-andrea-rocca/
rubocop-director
Gem to help you prepare a list of refactorings based on Rubocop TODO and git history
Newsletter is just a start with Lucian Ghinda | content_for :devs #008
If you are following up with the Ruby community, you most likely already know Lucian Ghinda. We had been honored with a nice conversation with him recently, and now you can check the episode also on Youtube.
rubygems.org marked unsafe
Anyone know what’s going on? No status from anyone running rubygems.org online yet. https://transparencyreport.google.com/safe-browsing/search?url=rubygems.org&hl=en-US
4 Essential Security Tools To Level Up Your Rails Security
Maintaining a Rails application up to date and secure takes some effort. Rails has a ton of security support, but there are other tools you can use to protect your codebase and production database. [more inside]
The AAA Pattern: Writing Robust Tests for Any Project With Confidence
Are you looking for a reliable way to test your applications? Look no further than the AAA pattern. [more inside]
Organize Business Logic in Your Ruby on Rails Application
In the first part of this two-part series, we’ll run through popular methods to organize your business logic: https://blog.appsignal.com/2023/05/10/organize-business-logic-in-your-ruby-on-rails-application.html
Deploying a Ruby on Rails App on Render with a Database, Redis, Sidekiq, and Cron Job
I recently wrote a blog post about deploying a slightly more complex-than-usual rails app to Render (a hosting alternative similar to Heroku). It resonated well with the Rails community on Reddit, so I thought I’d post it here too. Deploying a Ruby on Rails App on Render with a Database, Redis, Sidekiq, and Cron Job | MONN.APP Blog
Let's make a blog with Bridgetown! | Hanami Mastery #044
Bridgetown is the best static site generator for Ruby, and here is why. [more inside]
Ask_ChagGPT + VOICE input
Another milestone of ask_chatgpt, started with the idea “if it possible to record voice with Ruby”. Now, using some code and ffmpeg it’s possible, and you can talk to ChatGPT using your voice directly from the Rails console. [more inside]