Re: script in rails

Erol Fornoles
Wed, 24 Sep 2008 08:19:12 -0000

On Sep 24, 4:12 pm, David Nguyen
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---