Displaying 4 results from an estimated 4 matches for "colaa".
Did you mean:
  colab
  
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????
..."gendb", 
						:username => "dbuser", 
						:password => "dbuser")
		@connected1 = GenTableAs.connection()
		@removedConnection = GenTableAs.remove_connection()
		
		@connected2 = GenTableAs.connection() # should be
nil here
		obj1 = GenTableAs.new
		obj1["colaa"] = 100
		obj1["colab"] = "100"
		obj1.save	# should have raised exception or error
here
	end
end
####################################################################################
the output of index
@connected1: 
#<ActiveRecord::ConnectionAdapters::PostgreSQLAdapt...
2006 Jan 26
0
If you want to disconnect a database properly, there is the code:)!!!
...base => "db1", 
					:username => "dbuser1", 
					:password => "dbuser1")
				
	GenTableAs.set_table_name ''table_no_1''
    	GenTableAs.reset_column_information()
    	obj1 = GenTableAs.new
    	@col1 = obj1.class.column_names()	
	obj1["colaa"] = 123
	obj1["colab"] = "123"
	obj1.save	
	obj1 = nil
	GenTableAs.clear_connection	# here we disconnect the
connection
	# connection to a new database
	GenTableAs.establish_connection(:adapter =>
"postgresql",
					:host => "9.8.7.5",
					:port...
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