On Thu, Jun 24, 2010 at 2:00 PM, Radhesh Kamath <rmk.l...@gmail.com> wrote:

> I am newbie to RoR, and I was looking for a way to do the following:

> 3. Keep the models up to date with data from another source on the
> system (in addition to updates to the models via rails controllers).
>
> Now, RoR is great for 1 and 2. For 3, I am thinking of writing a
> daemon, but the daemon needs access to the database (possibly via the
> Rails ORM).

You almost certainly want to use the same ORM to access the DB
so the same business logic (validations, etc.) is used.

Your use case is pretty vague, but sure, daemon, cron job, whatever
works. :-)

> Another constraint is that I am using a JRuby-based system.

Shouldn't matter.

> Has anybody attempted something like this before?

No different than using script/runner for one-offs or cron jobs, or the
Rails console, etc.

FWIW,
-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to