Tag: rails
All the articles with the tag "rails".
-
Stimulus Is Boring — and That’s Why It Works
Why 'boring' tools like Stimulus.js are a superpower for mature Rails applications.
-
Escaping the AMS Trap: How We Benchmarked Our Way to Alba
A case study on migrating from ActiveModel::Serializers to Alba, including real-world benchmarks and a custom caching solution.
-
Rails Removed Email Obfuscation. Here's How I Brought It Back with Stimulus
A modern solution to bring back email obfuscation in Rails using Stimulus, ensuring zero spam and a great user experience.
-
Rails is the Brain, Go is the Photographer
How to use Rails as the 'Brain' and Go as the 'Photographer' to generate high-performance screenshots, keeping the Rails app lightweight and responsive.
-
Debugging Thread Safety in Legacy Rails Applications
Dive into a real-world debugging scenario involving missing HTTP headers during a Rails 5 upgrade, exploring the root causes and how to resolve them.
-
Formatting ActiveSupport::Duration Objects in Rails
Updated:Learn how to format ActiveSupport::Duration objects into concise, human-readable strings with locale support using the duration_in_words gem.
-
Working with HTTP Headers in Rails
Updated:Learn how to safely extract external HTTP headers in Rails while filtering out internal Rack and Rails environment variables.
-
Dynamic Full Page Background Images in Rails
Updated:Learn how to set and randomize full-page background images in a Rails app using CSS3 and simple view helpers.
-
Retrieving a Random Row in ActiveRecord
Updated:Learn different ways to fetch a random row in ActiveRecord, their trade-offs in PostgreSQL and MySQL, and which method to prefer for performance.
-
Highlighting Current Link in Rails Navigation
Updated:A look back at techniques for highlighting the active link in Rails navigation, with modern alternatives using current_page? and Stimulus.