2016-04-21 304 views
1

我有一个关于RadRails和activerecord-oracle_enhanced-adapter的查询。我使用的RadRails 2. 下面是我当地的宝石的名单,从名单宝石-local命令的输出囊括:Ruby和activerecord-oracle_enhanced-adapter

*** LOCAL GEMS *** 

actionmailer (2.3.4) 
actionpack (2.3.4) 
activerecord (2.3.4) 
activerecord-oracle_enhanced-adapter (1.6.7) 
activeresource (2.3.4) 
activesupport (2.3.4) 
bigdecimal (1.2.6) 
io-console (0.4.3) 
json (1.8.1) 
oracle_enhanced (1.2.5) 
psych (2.0.8) 
rack (1.0.1) 
rails (2.3.4) 
rake (10.4.2) 
rdoc (4.2.0) 

然而,当我尝试运行耙迁移命令显示信息如下:

rake aborted! 
Please install the oracle_enhanced adapter: `gem install activerecord-oracle_enhanced-adapter` (no such file to load -- active_record/connection_adapters/oracle_enhanced_adapter) 

(See full trace by running task with --trace) 

我已经卸载activerecord-oracle_enhanced-adapter并重新安装它,重新启动RadRails的,都无济于事。

回答

0

问题在于,您在几个星期前发布的最新的activerecord oracle增强适配器1.6.7中使用rails 2.3.4(2010年最后更新)。

尝试更新你的Rails 4.1(它也需要更新红宝石2.3),或在您的Gemfile降级的ActiveRecord-oracle_enhanced适配器到1.3.2:

gem 'activerecord-oracle_enhanced-adapter', '~> 1.3', '>= 1.3.2' 

而且它会更好,不要使用如此老的RadRails。在任何现代编辑器或IDE中尝试最新的Ruby和Rails!