2016-04-21 364 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!