Script in rails

Hi,

Can someone tell me good web links about how to use a script in rails.

Here the thing, I need to execute a script every day to generate
reporting stuff, My script should access all data available in the
database.

Where should I put the script so it will be able to access all models
classes?

Can the script be executed by rails instead of calling it from the cron
daemon?

Thanks!

On Sep 24, 4:12 pm, David N. [email protected]
wrote:

Can the script be executed by rails instead of calling it from the cron
daemon?

Thanks!

Posted viahttp://www.ruby-forum.com/.

You can create a rake task for that.

http://railscasts.com/episodes/66