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.
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]
Automatically open the browser when the Rails server starts
How to register a simple puma plugin to automatically open a browser tab for your Rails app when you start bin/rails server or bin/dev. https://mattbrictson.com/blog/open-browser-on-rails-start
How to use a specific version of Rails
The latest issue of Rails Tricks covering how to use a specific version of Rails is out! https://greg.molnar.io/blog/rails-tricks-issue-6/
Open Source Heroes - A Poem of Appreciation
Working with open source for a long time is tremendous work, often unappreciated. Join me with a moment of sharing a word of appreciation to one of OSS hero you know! [more inside]
Rails 7. Start Kit. Release 1.9
Rails 7. Start Kit is Rails App in a Docker container with some popular preinstalled tools. Release 1.9 is here. In this release I managed and described in the docs all processes related to Front-end tools. ESBuild / ImportMaps / Sprockets - all these tools and how to use them together in a project – read the release notes . Happy coding!
Using Boxcars (Ruby Langchain alternative) to query a Rails DB with natural language
You may have heard of Langchain, the Python library for creating LLM-powered apps with nearly 35k GitHub stars. Despite the large following, Langchain can be difficult to use when you want to go deeper than “hello world” tutorials. This experience led me to Boxcars, a Langchain-inspired Ruby gem but with fewer abstractions. [more inside]