Forum: Ruby on Rails how to tell server to do <something> once ?? or schedule thi

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
sayoyo S. (Guest)
on 2006-04-06 17:58
(Received via mailing list)

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

Thanks you very much????


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
Nuno (Guest)
on 2006-04-06 18:12
Code in environment.rb is run once only (I presume but quite sure)

For scheduling have a look here :
This topic is locked and can not be replied to.