簡體   English   中英

在運行“ Snow Leopard”的Mac OS上安裝“ responds_to_parent”插件

[英]Installing the 'responds_to_parent' plugin on Mac OS running “Snow Leopard”

我正在嘗試按照本教程在Ruby on Rails 3應用程序中上傳AJAXfy文件。 在“第6步。使用iframe和responss_to_parent”一章中,我必須安裝“ responds_to_parent”插件,但無法執行。

我使用的是運行“雪豹”的Mac OS,因此在終端機中輸入以下命令:

script/plugin install http://responds-to-parent.googlecode.com/svn/trunk/

但響應是:

-bash: script/plugin: No such file or directory

我必須輸入什么?


順便說一句:當我將RoR 3應用程序部署到托管服務器上時,“我該怎么辦” /“如何處理” gem和插件?

script/plugin install不再困難。 請改用以下語法:

rails plugin install

隨着Rails 3的發布,腳本目錄中的所有可執行文件都合並到了script/rails

就部署而言,使用rails plugin install會將代碼添加到您的/ vendor / plugins目錄中,因此,只要您將其簽入源代碼控制系統,它就應該與其余代碼一起部署。 寶石應包含在Gemfile中。 您將需要使用“捆綁安裝--deployment”。 如果您使用的是Capistrano,則捆綁器中包含一個配方。 有關捆綁器的更多信息,請訪問: http : //gembundler.com/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM