开发者

Installing cancan 2.0 gem in Rails 3.1

开发者 https://www.devze.com 2023-04-10 14:58 出处:网络
I\'m having trouble installing the cancan 2.0 gem in Windows XP. I am using Rails 3.1 and in my gemfile y have

I'm having trouble installing the cancan 2.0 gem in Windows XP. I am using Rails 3.1 and in my gemfile y have

gem "cancan", :git => "git://github.com/ryanb/cancan.git", :branch => "2.0"

but it keeps saying

No such fil开发者_开发知识库e or directory - git clone "git://github.com/ryanb/cancan.git"

My teammates are not having this problem, but the are working in Unix systems.


It sounds like your git is not working properly. Are you using any other git references in your Gemfile?

I copied and pasted the exact same thing in my gemfile and it worked just fine.


gem 'cancan', github: 'ryanb/cancan', branch: '2.0'
0

精彩评论

暂无评论...
验证码 换一张
取 消