[Rails] Re: Multi databases in rails 3

2010-07-14 Thread trung
I don't think this is a bad idea at all. People just have different need. For example, if you're building an eCommerce site. You might want to clone the Catalog database that holds all static products information and deploy it on each front end app server. But all the app servers share a

[Rails] Re: Multi databases in rails 3

2010-07-13 Thread trung
their specific data. We had to jump through some hoops to make it work in rails so hopefully there is something in rails 3 to make life easier.  I haven't been able to find any info on this so I'm guessing there isn't anything coming. On Jul 9, 8:12 pm, trung tr...@phamcom.com wrote: Is there any

[Rails] Multi databases in rails 3

2010-07-10 Thread trung
Is there any support for multiple databases in Rails 3? Either natively through ActiveRecord or third party gem? Thanks. -- 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

[Rails] Re: New to cacheing

2010-05-14 Thread Trung Do
to specify the cache sweeper in the controller. In your case, try to add this: class SiteController ApplicationController caches_action :index cache_sweeper :listing_sweeper Regards, .Viet Trung. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: Sweeper class doesn't work

2010-05-14 Thread Trung Do
. Thanks and regards, .Viet Trung. -- Posted via http://www.ruby-forum.com/. -- 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

[Rails] Sweeper class doesn't work

2010-05-13 Thread Trung Do
Hi experts, I have built a typical cache sweeper class: #== class PrivilegeCacheSweeper ActionController::Caching::Sweeper observe User def after_update(user) expire_cache_for(user) end private def expire_cache_for(user) p Hi there!!!