|
|
http://snippets.dzone.com/posts/show/6925
rmu_db_config.yml
host: localhostdatabase: xxxxpassword: xxxx
require 'rubygems' require 'active_record' dbconfig = YAML::load(File.open('rmu_db_config.yml')) ActiveRecord::Base.establish_connection(dbconfig) class Member < ActiveRecord::Base end p participant = Member.find(:all) |
|