From: Cetric Blue Date: 2008-10-29T04:02:15+09:00 Subject: Re: oracle_enhanced adapter 'uninitialized constant' error Todd Benson wrote: > On Tue, Oct 28, 2008 at 1:06 PM, Cetric Blue > wrote: >> :password => "password1", >> :host => "abc.def.jkl") >> >> class Connect < ActiveRecord::Base >> set_table_name "changelog" >> end >> >> current_db = Connect.find(:first, :order => 'applied_dttm DESC') >> >> Everything worked well in Windows, but once I moved it to Linux, things >> are so messed up. > > I'm 90% sure I'm wrong on this, but you never know. Have you verified > that the database is running (in other words, can you connect > directly)? > > One small other thing... you should require 'rubygems' before you > require any other gem. That's not part of your problem, though, > judging by your errors. Just something to keep in mind, I suppose. > > One other thing to think about is what port does the database respond > to? Is it over the network or local? > > Todd Todd, Yes, the database is definitely running, although it is through the network, but I have the port specified in ":host => "abc.def.jkl:1521". I moved require 'rubygems' to the top of the code, same error remains... -- Posted via http://www.ruby-forum.com/.