2009-02-26 78 views
0

當我嘗試安裝redbox插件時,儘管所有東西都已安裝,但最後一行說沒有找到插件。這是爲什麼 ?將redbox插件安裝到rails時爲什麼說找不到插件?

script/plugin install http://svn2.cvsdude.com/craigambrose/plugins/redbox 
+ ./README 
+ ./Rakefile 
+ ./images/redbox_spinner.gif 
+ ./init.rb 
+ ./install.rb 
+ ./javascripts/redbox.js 
+ ./lib/redbox.rb 
+ ./lib/redbox_helper.rb 
+ ./stylesheets/redbox.css 
+ ./tasks/redbox_tasks.rake 
+ ./test/redbox_test.rb 
Plugin not found: ["http://svn2.cvsdude.com/craigambrose/plugins/redbox"] 

回答

2

內部vendor/plugins/redbox/install.rb的路徑似乎是錯誤的:

plugins_dir = File.expand_path(".") 
redbox_dir = File.join(plugins_dir, 'redbox') 
root_dir = File.join(redbox_dir, '..', '..', '..') 

File.copy File.join(redbox_dir, 'javascripts', 'redbox.js'), File.join(root_dir, 'public', 'javascripts', 'redbox.js') 
File.copy File.join(redbox_dir, 'stylesheets', 'redbox.css'), File.join(root_dir, 'public', 'stylesheets', 'redbox.css') 
File.copy File.join(redbox_dir, 'images', 'redbox_spinner.gif'), File.join(root_dir, 'public', 'images', 'redbox_spinner.gif') 

redbox_dir路徑未佔vendor/plugins路徑組件。但是您可以手動將上面列出的三個文件從vendor/plugins/redbox目錄複製到應用程序public目錄下的相應子目錄,以完成安裝。

+0

這是正確的方法嗎?我的意思是我需要使用所有插件來做到這一點,或者這是紅盒的問題嗎? – Ram 2009-02-27 06:36:59