我正試圖在我的Ruby on Rails 3應用程序中使用此tutorial來AJAXfy文件上傳。在「第6步。使用iframe和responds_to_parent」一章中,我必須安裝'responds_to_parent'插件,但我無法使用。在運行「Snow Leopard」的Mac OS上安裝'responds_to_parent'插件
我用運行 「雪豹」 在Mac OS,所以在我的終端I輸入:
script/plugin install http://responds-to-parent.googlecode.com/svn/trunk/
但響應:
-bash: script/plugin: No such file or directory
我要進入?
順便說一句:「我有什麼做的」 /「如何處理」爲我的回報率3應用程序的寶石和插件的時候,我會一個託管服務器上部署呢?
將其克隆到供應商/插件目錄中。如果你安裝了git客戶端,請進入你的shell和「cd/your_rails_app/vendor/plugins」和「git clone git://github.com/itkin/respond_to_parent.git」。這會將其安裝爲插件 – johnmcaliley 2011-01-20 05:07:00