Tutorials

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...

Coding agent in 94 lines of Ruby | Radan Skorić's website
An article floated into my reading list: How to Build an Agent, or: The Emperor Has No Clothes. The author, Thorsten Ball, claims building a coding agent isn’t hard, then builds one in ~400 lines of Go. While reading the code, I kept thinking that...

3D Charts and More with JRuby and JFreeChart – Charles Oliver Nutter – Java, Ruby, and JVM guy trying to make sense of it all
After playing with JFreeChart and JRuby and writing up a lovely blog post called “Beautiful Charts with JRuby and JFreeChart” it seems that some folks did not agree with my assessment of the charts as “beautiful” and others did not realize the pow...


Developing a voice AI app in Rails for drive-through ordering
If you attended the live coding session last week with Chad Pytel and Svenja Schäfer you are probably familiar with the favourite thoughtbot fast food restaurant: Dinorex. If you missed it, you can watch the recording on YouTube.
In this post, we...