http://stackoverflow.com/questions/80859/in-rails-how-do-i-execute-direct-sql-code-on-a-different-databasedefget_custom_connection(identifier,host,port,dbname,dbuser,password)eval("Custom_#{identifier}=Class::new(ActiveRecord::Base)")eval("Custom_#...
查看全文