Tutorials

Real-Time Communication with Twilio 2-Way SMS in Ruby on Rails Application – Josh Software
Two-way SMS communication has become a must-have feature for modern applications, enabling real-time, interactive messaging experiences. Whether it’s for sending OTPs, notifications, or enabling customer support, two-way SMS allows businesses to e...



Getting Answers from a Big PDF with RubyLLM - Max Chernyak
Some API vendors give you an API doc in a giant custom-edited PDF file. In my case it’s >1200 pages, with a “helpful” table of contents that itself spans about 20 pages.
Well, I dislike reading giant PDF docs, love writing Ruby, and there’s an aw...

Rails Controller Callback Order With Concerns - Kevin Murphy
We’re building an app to display the prompts from an automated phone system. The system will read these out when people call our technical support phone number. We use a callback to set the list of prompts to read. Whether you’re calling for detai...

How to get composite keys to play with Rails view helpers
We’ve seen in a previous article how making your object ActiveModel-compatible allows it to play natively with Rails’ URL helpers. What about a more complicated case: you have a custom in-memory object that doesn’t have a single primary key but in...

Executing Structured A.I. Workflows with Shopify Roast – code.dblock.org | tech blog
Last week, my team at Shopify released a new tool called Roast, a convention-oriented framework for creating structured AI workflows. Our vision is to enable A.I. agents to solve developer productivity problems at scale. Imagine continuously impro...



Serving Large Files in Rails with a Reverse Proxy Server (Nginx)
If your Rails app deals with large files, let a reverse proxy like Nginx or Thruster serve them. In this post, we'll learn how X-Accel-Redirect (or X-Sendfile) header hands off file delivery to Nginx. We'll also read Thruster’s source code to lear...