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.
(Ab)using Rails 7.1's #generates_token_for for List-Unsubscribe Headers
I wrote a post where I explain how I migrated a project from Amazon SES to Postmark while adding List-Unsubscribe headers by (ab)using Rails 7.1’s #generates_token_for.
Image processing service for Rails apps
Generating and serving thumbnails efficiently in Rails apps is still a headache. [more inside]
Optimize Puma worker configuration
Discover the balance between the number of threads and response times by tweaking Puma threads and processes. Learn how to adjust these settings for optimal performance and minimal resource usage in our latest blog post.
New gem for cursor-based pagination
Announcing a new gem for cursor-based pagination in rails - https://github.com/fatkodima/activerecord_cursor_paginate [more inside]
Weird Ruby: Incrementing Strings
Here’s the next installment in the Weird Ruby series. Enjoy!
minitest-substitute and Rails 7+
Object#with introduced by Rails 7 didn’t play nice with minitest-substitute until now. I’ve therefore dropped the the conflicting “with” on the new minitest-substitute-1.0.0 release in favour of “substitute” to override variables of any kind for the duration of a block in your tests or specs. https://github.com/svoop/minitest-substitute?tab=readme-ov-file#update-from-0xx-to-1xx
Honeybadger launches structured logging, data visualizations, and dashboards
Introducing Honeybadger Insights: it’s the logging tool you always wanted and the observability tool you didn’t know you needed. Read the blog post
Montreal.rb 2024/03 - Frontend Ruby with Glimmer DSL for Web - Andy Maleh
The talk video and slides have been posted for the Montreal.rb March 2024 talk “Frontend Ruby with Glimmer DSL for Web” (Ruby in the Browser Web Frontend Framework). [more inside]
Zeitwerk Internals - Xavier Noria
The first presentation from the Ruby Warsaw Community Conference! [more inside]
Active Record or Sequel: Which Best Fits The Needs of Your Ruby App?
Let’s compare some Active Record features to its lesser-known but powerful cousin, Sequel: https://blog.appsignal.com/2024/03/06/active-record-or-sequel-which-best-fits-the-needs-of-your-ruby-app.html
How to fix "missing symbol called" when running Rails commands
From my experience building Ruby on Mac, and helping people get their Rails apps up and running, I explain the most common reasons for the “dyld: missing symbol called” error and how to fix it. https://www.rubyonmac.dev/how-to-fix-missing-symbol-called-when-running-rails-commands
Why I love Ruby
As a developer with over 8 years of coding experience, I’ve worked with many languages and I decided to focus my efforts on Ruby. This essay is about why I like using Ruby for work, and why it’s still relevant https://dev.to/kopylov_vlad/why-i-love-ruby-44g9
Streaming LLM Responses
In this episode, we look at running a self hosted Large Language Model (LLM) and consuming it with a Rails application. We will use a background to make API requests to the LLM and then stream the responses in real-time to the browser. https://www.driftingruby.com/episodes/streaming-llm-responses
Creating new rails app or adding a new scaffold? - Use this rails command generator
I created a tool that let’s you select what you want to generate with supported options. [more inside]
Add a Kafka Consumer to Rails
Learn how to integrate a Kafka consumer into a Rails application using the Karafka gem. https://danielabaron.me/blog/rails-kafka-consumer/
Using the XDG Base Directory Specification
Hello. 👋 I wanted to share an article on leveraging XDG in your CLIs, web applications, libraries, frameworks, etc. There’s been some chatter in this space as of late, which is great to see, so wanted to show how this works and gems you can use to build upon it if interested. There’s a lot you can do with this specification, so enjoy!
Tomselect.js with autocomplete using stimulus controller
I wrote an article some time back on how to use tom-select.js with autocomplete: https://nkokkos.hashnode.dev/how-to-use-tomselect-javascript-library-to-create-and-edit-abelongsto-many-relation-with-ruby-on-rails I hope you find it useful.
CanvasXpress - A JavaScript library for data analytics
I developed a Ruby wrapper for CanvasXpress: https://github.com/neuhausi/canvasXpress-ruby. The home page for CanvasXpress: https://www.canvasxpress.org/index.html
👋 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.