A look back at how Rails 2.x apps loaded CSV data into models, and how modern Rails apps can do it more efficiently today.
Learn how to format ActiveSupport::Duration objects into concise, human-readable strings with locale support using the duration_in_words gem.
Learn how to safely extract external HTTP headers in Rails while filtering out internal Rack and Rails environment variables.
Learn how to connect a Rails app to multiple databases using establish_connection, with context on modern Rails features for handling multi-DB setups.
Learn how to set and randomize full-page background images in a Rails app using CSS3 and simple view helpers.
Learn how to add a simple close button to dismiss Rails flash messages and a modern Rails 7+ Stimulus approach.
A look back at techniques for highlighting the active link in Rails navigation, with modern alternatives using current_page? and Stimulus.
Learn different ways to fetch a random row in ActiveRecord, their trade-offs in PostgreSQL and MySQL, and which method to prefer for performance.