安装rails插件的问题(restful_authentication)

时间:2011-08-19 11:30:43

标签: ruby-on-rails ruby-on-rails-plugins restful-authentication

我正在尝试在运行rails -v 2.3.5的机器上安装restful_authentication插件。我尝试安装时出现以下错误

ruby script/plugin install http://github.com/technoweenie/restful-authentication.git restful_authentication
Plugin not found: ["http://github.com/technoweenie/restful-authentication.git", "restful_authentication"]

ruby script/plugin install git://github.com/technoweenie/restful-authentication.git restful_authentication
Plugin not found: ["git://github.com/technoweenie/restful-authentication.git", "restful_authentication"]

我应该如何安装插件?

1 个答案:

答案 0 :(得分:3)

您可以下载插件here并将其手动放入供应商/插件中。

下载的直接链接:https://github.com/technoweenie/restful-authentication/tarball/master

所以目录结构应该是:vendor / plugins / restful_authentication