search for: set_customer_db

Displaying 1 result from an estimated 1 matches for "set_customer_db".

2009 Nov 01
9
Dynamic Database Connections
Hey everyone! I have a problem that''s been making me a little nuts. I would like to use RoR for a upcoming project, but if I can''t get past this hiccup I''m afraid I''ll have to use PHP or Java. Ugh. The application needs to have a database-per-customer model. So when I do a Product.find(:all) I need to make sure i''m connecting to say acme.products