How to tell server to do <something> once ? or schedule thi

Hi,

I have some initialisation need to be done only when
the server starts. And I don’t know where should I
pull those codes, should I pull them into some special
controller, or some place else…

Also if I want to schedule some task with rails, it is
possible???

Thanks you very much???

Saiho

The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

Code in environment.rb is run once only (I presume but quite sure)

For scheduling have a look here : Running Rails tasks by schedule, instead of an HTTP request - Rails - Ruby-Forum