On Sat, Sep 19, 2009 at 12:33 AM, Preksha Patel
<[email protected]> wrote:

> so i want to use cron in ruby on rails application. in application i
> want to fire some query everyday so where i should write the code for
> query so that when cron is run that query is also fire??

Cron runs whatever you tell it too, wherever that is. :-)

If you want to run something with the Rails app's environment, you
probably want to add the code to {RAILS_ROOT}/lib and invoke it
via {RAILS_ROOT}/script/runner

HTH!
-- 
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan

--~--~---------~--~----~------------~-------~--~----~
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