Daniel Kaminski
5/24/2006 4:51:00 PM
Dnia 24-05-2006 o 18:10:21 Jonathan Heinen
<Jonathan.Heinen@rwth-aachen.de> napisa3:
> Hi,
>
> if I want to start the code of a controller making use of activrecords
> and other rails stuff, is there any possibilitie to start this script
> from the consol or by a cron job?
>
> Jonathan
Hi~
I think that `script/console` [or `ruby script\console` on windows
afair:)] from your rails dir will be the best choice. It gives you irb
with rails framework loaded. This commands takes `-e <environment>`
parameter to choose environment which you prefer.
Daniel