What should I require to use my rails app in my script?

Hi,

I have an rails app and I can use the models in script/console.
But how can I write my own script?
In other words, what should I “require” in my script?

Thanks.

Sam

On Nov 6, 2006, at 11:58 AM, ssk wrote:

I have an rails app and I can use the models in script/console.
But how can I write my own script?
In other words, what should I “require” in my script?

Look into script/runner.

It’s made just for what you want to do.


– Tom M., CTO
– Engine Y., Ruby on Rails Hosting
– Reliability, Ease of Use, Scalability
– (866) 518-YARD (9273)