Hi,
How do you set up automated tasks on rails. Say I wanted to send an update mailing every night at midnight to my users, or every night connect to a external database to update information on my database?
you can write a rake task and then invoke it with a cron-like tool (depending on your OS and preferences)
writing rake tasks is pretty straight-forward. In your rails directory there are a lot of tasks you can take a look for getting the flavour of it. They are under vendor/rails/railties/lib/tasks
regards,
javier ramírez