2011-01-20 94 views
0

我正试图在我的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应用程序的宝石和插件的时候,我会一个托管服务器上部署呢?

回答

1

script/plugin install已不在轨道中。使用此语法来代替:

rails plugin install 

所有可执行文件脚本目录内被合并到script/rails与Rails的3

至于部署云的发布,使用rails plugin install将代码添加到您的/供应商/ plugins目录,因此只要您将其检入到您的源代码管理系统中,就应该使用其他代码进行部署。宝石应该包含在Gemfile中。您将需要使用“捆绑安装 - 部署”。如果你正在使用capistrano,那么bundler就有一个配方。有关捆绑商的更多信息,请点击此处:http://gembundler.com/

+0

将其克隆到供应商/插件目录中。如果你安装了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

相关问题