I frequently have some code that should be run either on a schedule or as a background process with some parameters. The common element is that they are run outside the disp
For regularly scheduled tasks, I just use rake tasks. It's simple, easily tested, easily understood and integrates well with the Rails environment. Then just execute these rake tasks with a cron job at whatever interval you require (I use whenever to manage these jobs because I'm slightly cron-illiterate).