Displaying 3 results from an estimated 3 matches for "cr_country".
2006 May 15
1
Does Anyone know how to set the table name as "CR_Country" ?
One issue is there in connecting one schema(table) "CR_Country" and
"CR_Security" from this sybase Db.
I have set false for pluralize_table_name and also setting the table
name explicitly too as follow in the "environment.rb" :
======================================
ActiveRecord::Base.pluralize_table_names = false
class CR_Country &...
2006 May 15
2
retrieving hashes key & values (ASAP)
Hi,
I want to retrieve the set of key & values which returns from a
stored procedure : connection.select_all "exec common.dbo.scr_lookupric
''AAP.N'' ".
The results i want to display in a view screen call result.rhtml.
Please help me out ASAP.
Thanks in advance.
joshua...
--
Posted via http://www.ruby-forum.com/.
2006 May 15
0
Automatically converted the table name to small letters!!
...R_Security" and
"CR_Security" from this sybase Db.
I have set false for pluralize_table_name and also setting the table
name explicitly too as follow in the "environment.rb" :
======================================
ActiveRecord::Base.pluralize_table_names = false
class CR_Country < ActiveRecord::Base
set_table_name "CR_Country"
end.
======================================
Now it gives an error as
not able to find object "select * from cR_Country"
and another one as :
not able to find object "select * from cr_security"
It somewhere con...