简体   繁体   English

无法在Rails中安装插件

[英]Unable to install plugin in Rails

I'm running Windows 7 32 bit. 我正在运行Windows 7 32位。 I just installed Ruby 1.9.2 and Rails 3.0.1. 我刚刚安装了Ruby 1.9.2和Rails 3.0.1。 I set up my rails sample application and everything seems to be working fine. 我设置了Rails示例应用程序,并且一切似乎都正常进行。 I tried installing the restful_authentication plugin from github and it's been a nightmare. 我尝试从github安装restful_authentication插件,这是一场噩梦。 I'm executing the following command: 我正在执行以下命令:

rails plugin install -force git://github.com/technoweenie/restful-authentication.git

...and i get the get the following error: ...而我得到以下错误:

Cannot install using checkout because this project is not under subversion.

How do i get around this? 我该如何解决? I've installed both the SVN and Git command-line clients and they're in my PATH. 我已经安装了SVN和Git命令行客户端,它们都在我的PATH中。

是的,您不应将此插件与Rails 3一起使用。请使用devise。

  1. Get a linux or a mac for Rails development. 获取用于Rails开发的Linux或Mac。
  2. According to the installation notes you need to simply clone the project to the plugins dir. 根据安装说明,您只需将项目克隆到插件目录即可。

    git clone git://github.com/technoweenie/restful-authentication.git restful_authentication git clone git://github.com/technoweenie/restful-authentication.git restful_authentication

  3. As others have suggested, devise is a better option. 正如其他人所建议的那样, 设计是更好的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM