I need to do some database housekeeping periodically. Right now I have
a method in my model, which I am calling from ./script/console like x
= Model.update_all and it works fine.
I need to put this in cron. I know that I should be using
./script/runner, I have looked a lot for an example script
encapsulating my method to do this. But could not find any. It would
be great if some one can post a simple script that I can call from
I am also not sure if ./script/runner calls methods in my controller or model.
thanks and regards,