我在从 ROR 3.2 连接到 Oracle 数据库时遇到问题。
irb(main):001:0> gem 'ruby-oci8', "~>2.1.0"
=> true
irb(main):002:0> gem 'activerecord-oracle_enhanced-adapter', '~> 1.4.1'
=> true
irb(main):003:0> exit
rails console
C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require':
Please install the oracle_enhanced adapter: `gem install activerecord-o
racle_enhanced-adapter` (cannot load such file -- active_record/connection_adapters/oracle_enhanced_adapter) (LoadError)
我在网上搜索,它说我应该创建一个位于 https://github.com/rsim/oracle-enhanced/blob/master/Gemfile的 gems 文件,然后进行捆绑安装。但我是 Rails 新手,不知道该怎么做。
C:\kerbapp>bundle show activerecord-oracle_enhanced-adapter C:/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-oracle_enhanced-adapter-1.4.1