search for: uses_connect

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

Did you mean: use_connect
2008 May 05
0
uses_connection plugin
...ter: mysql database: shared_database username: user password: password host: dbs_host Next tell your model that it should connect the the ‘shared’ database and use the table there… class ZipCode < ActiveRecord::Base # Uses the ''shared'' database in all environments uses_connection :shared, :in => :all end ... and the next time you do ZipCode.find(:first) or any other interaction with the ZipCode model it will use the zip_codes table in your shared database. Where to get it: =========== GitHb: http://github.com/railsfreaks/uses_connection More info: http://www.rail...