RE: How to create a background task?

cron *nix or a scheduled task under Windows.

Nothing to do with Rails (a web development framework)

Ross