On Sep 24, 4:12 pm, David Nguyen <[EMAIL PROTECTED]>
wrote:
> 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!
> --
> Posted viahttp://www.ruby-forum.com/.

You can create a rake task for that.

http://railscasts.com/episodes/66
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to