Displaying 3 results from an estimated 3 matches for "gen_table_a".
Did you mean:
gen_table_as
2005 Dec 21
10
can an active records maps to N tables?
Hi,
Is it possbile that one active record maps to N
tables, actually the relation is 1 to 1, I wonder it
is possible.
also can a ruby object map to N tables, instead of an
active records?
Thanks you very much:)
Saiho
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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 11
0
Connection problem with a generic-runtime-built ActiveRecord::Base
...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
obj1 = genAClass.new
@col1 = obj1.class.column_names()
@removedConnection = GenActRec.closeConnection()
# should be an error
@col2 = obj1.class.column_names()
end
end
Basically, @col2 should be an error, because the
connection should be closed, bu...