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 that [...]
Monthly Archives: August 2006
Retrieving Random Elements from an ActiveRecord
August 18, 2006 – 3:27 pm
Staging server with Capistrano
August 5, 2006 – 8:10 pm
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
So I set out to [...]