Monthly Archives: August 2006

Retrieving Random Elements from an ActiveRecord

This one is short but not something I immediately thought of. It doesn’t rely on an ActiveRecord abstraction, but I originally thought it would need to, so the title is to save future Web searchers. The idea is that you want to create a list of all the Users, but ordered randomly. It turns out […]

Staging server with Capistrano

Update: This is old documentation; this can now be done in Capistrano itself. Capistrano has made deploying to the production server quite easy and predictable. So easy that it was only last week that I realized what was missing: the staging server. Duh. What I desired was something as easy as: rake deploy_staging rake deploy_production […]