Jsut I ahve started looking into Substruct : It is opensource ROR E-Commerce application
Check more about this in the below link
July 28, 2008
July 28, 2008
Simple way to connect to multiple database is
Just specify the database and table name in the models ( see the below example)
class Study < ActiveRecord::Base
#this must be defined before you call better_nested_set
def self.table_name
# “sso_development.users”
“sso_” + ENV[“RAILS_ENV”] + “.” + “studies”
end
end
I know that there are many ways to connect multiple databases