Tutorials

Modern Rails flash messages (part 2): The undo action for deleted items
For my needs (and for this article) I chose to use the soft-delete method.This solution using a mechanism to mark a record as deleted instead of deleting it. The application is then set up to display only records without the mark (like active only...

Gustavo Caso: Writing a Ractor Base Job Scheduler
A background job processor allows you to offload heavy computational tasks from the main process to other processes.Imagine a typical request/response inside a Rails app, you would like to provide your users with the fastest response, but some req...







The Life-Changing Magic of Tidying Ruby Object Allocations | Heroku
Your app is slow. It does not spark joy. This post will use memory allocation profiling tools to discover performance hotspots, even when they're coming from inside a library. We will use this technique with a real-world application to identify a ...

Protecting Your Apps From Link-based Vulnerabilities: Reverse Tabnabbing, Broken-Link Hijacking, and Open Redirects
Links! They're the very fabric of the Web. Browsing simply wouldn't be possible without them. Creating and following links feels so natural that you probably don't stop very often to wonder about the risks associated with them. In this post, I wan...