search for: date_to_delete_from

Displaying 1 result from an estimated 1 matches for "date_to_delete_from".

2006 Jul 07
1
Cronjob / .rb help clearing session table (new to cronjobs)
...way of solving this problem? Are there a few ways to solve this problem? Would anyone mind telling me which is the best one? My guess, at this point, is that i set the cronjob to run a standalone .rb that does something like Session.find(:all, :conditions => ["updated_at <= ?",date_to_delete_from]).destroy Anyway, i think it is clear that I am confused any help or even a little direction would be greatly appreciated. Thanks -- Posted via http://www.ruby-forum.com/.