Oracle_enhanced adapter 'uninitialized constant' error

Hi,

Can any one help me? I’m using Ubuntu and trying to connect to an oracle
database using oracle_enhanced adapter connection, but keeps getting
following error:

/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.
rb:275:in load_missing_constant': uninitialized constant ActiveRecord::Connecti onAdapters::OracleEnhancedAdapter (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:467:inconst_missing’
from
/home/scheng/rails/ServerMonitoringSystem/config/initializers/oracl
e_enhanced.rb:1
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/
dependencies.rb:502:in load' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:inload’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/
dependencies.rb:354:in new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:inload’
from
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:475:in load_application_initializers' from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:474:in
each’
… 7 levels…
from
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/runner.rb:39
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_ original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequ
ire’

I have gem oracle_enhanced-adapter, ruby_oci8, etc. installed:

gem list

*** LOCAL GEMS ***

actionmailer (2.1.1, 2.1.0)
actionpack (2.1.1, 2.1.0)
activerecord (2.1.1, 2.1.0)
activerecord-oracle-adapter (1.0.0.9250)
activerecord-oracle_enhanced-adapter (1.1.8)
activeresource (2.1.1, 2.1.0)
activesupport (2.2.0, 2.1.1, 2.1.0)
builder (2.1.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
hpricot (0.6.161)
markaby (0.5)
mongrel (1.1.5)
passenger (2.0.3)
picnic (0.6.5)
rack (0.4.0)
rails (2.1.1, 2.1.0)
rake (0.8.3)
restr (0.4.0)
reststop (0.3.0)
ruby-oci8 (1.0.3)
rubygems-update (1.3.0)
rufus-scheduler (1.0.11)
taskr (0.3.0)

Here’s my ruby code:

require ‘rubygems’
require ‘active_record’

ActiveRecord::Base.establish_connection(
:adapter => “oracle_enhanced”,
:database => “xyz”,
:username => “user1”,
:password => “password1”,
:host => “abc.def.jkl:1521”)

class Connect < ActiveRecord::Base
set_table_name “changelog”
end

current_db = Connect.find(:first, :order => ‘applied_dttm DESC’)

Any ideas from any genius?

Thanks!