search for: gentestcontrol

Displaying 4 results from an estimated 4 matches for "gentestcontrol".

2006 Jan 19
4
multiple database in the same actions?
Hi, I read the example in http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases, it show us how to connect to other database, each time we start a new action, however, this doesn''t work while you try to connect to two different database within the same action. SO I wonder is it possible to bind to two or more database within the same action???? Thanks you very much Saiho
2006 Jan 13
1
How to disconnect to a database????
...Rails 0.14.2 and ruby 1.8.3 (2005-09-21) [x86_64-linux] We are running on Linux KDE 3.4, and our database engine is postgresql The following is a code example: #################################################################################### class GenTableAs < ActiveRecord::Base end class GentestController < ApplicationController def index GenTableAs.establish_connection(:adapter => "postgresql", :host => "1.2.3.4", :port => 5432, :database => "gendb", :username => "dbuser", :password => "dbuser...
2006 Jan 11
0
Connection problem with a generic-runtime-built ActiveRecord::Base
...Rec) const_set("#{className.to_s}", genClass) genClass.set_table_name tableName genClass.reset_column_information() return genClass end # read table Column names def readTableColumnNames return self.class.column_names() end end this how I use it: class GentestController < ApplicationController def index GenActRec.connectToPSQLDB("1.2.3.4", 5432, "gendb", "dbuser" ,"dbpwd" ) # test create genAClass = GenActRec.buildNewTableClass("GenTableAs","gen_table_as") @name = genAClass.name obj...
2006 Jan 05
7
HOWTO: Combine fields from 2 two tables in 1 object
Hi all, For a dropdownlist (showing "Company - FirstName Lastname'') I want to fill an object @project_contacts with "Name" from table Companies and "Firstname" and "Lastname" from table contacts. Any idea? Regards, Gerard. -- "Who cares if it doesn''t do anything? It was made with our new Triple-Iso-Bifurcated-Krypton-Gate-MOS