On Thu, Dec 9, 2010 at 11:07 AM, Matteo Folin <[email protected]> wrote:

> What is the best way to sync my rails model with an external database ?
>
> I can use a callback on my model to update the external table. But in
> the other direction, when the external db change some data and would
> sync my activerecord model ? I can only think at a REST request of
> update of some record. Or a cron sync script, problematic with large db.
> There's better solutions ?
>
> thanks.
>
>
the only time you need to reload the models is if the schema of the db
changes, any other time it the data changes rails will always pull the
latest data, it appears that what you want to know is how to update the view
when the database changes. is that so ?

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