开发者

Installing cancan 2.0 gem in Rails 3.1

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜