无法在 Rails 中安装插件
我运行的是 Windows 7 32 位。我刚刚安装了 Ruby 1.9.2 和 Rails 3.0.1。我设置了 Rails 示例应用程序,一切似乎都工作正常。我尝试从 github 安装 restful_authentication
插件,这真是一场噩梦。我正在执行以下命令:
rails plugin install -force git://github.com/technoweenie/restful-authentication.git
...并且出现以下错误:
Cannot install using checkout because this project is not under subversion.
如何解决此问题?我已经安装了 SVN 和 Git 命令行客户端,它们位于我的 PATH 中。
I'm running Windows 7 32 bit. I just installed Ruby 1.9.2 and Rails 3.0.1. I set up my rails sample application and everything seems to be working fine. I tried installing the restful_authentication
plugin from github and it's been a nightmare. 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,你不应该在 Rails 3 中使用这个插件。使用 devise。
Yep, you should not use this plugin with Rails 3. Use devise.
根据安装说明,您只需将项目克隆到插件目录。
git clone git://github.com/technoweenie/restful-authentication.git Restful_authentication
正如其他人所建议的,设计 是一个更好的选择。
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
As others have suggested, devise is a better option.