但显然它在我的gemfile中,不是吗?
来源'http://rubygems.org'
gem 'rails', '3.0.0' gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' gem 'gravatar_image_tag', '0.1.0' gem 'will_paginate', '3.0.pre2' gem 'annotate' group :development do gem 'rspec-rails', '2.0.1' gem 'annotate-models', '1.0.4' gem 'faker', '0.3.1' end我添加了gem'annotate'并试图在堆栈上的其他地方推荐但没有成功。 知道为什么它无法在源头找到宝石吗? 我怎么能手动覆盖这个? 谢谢。
bundle install Fetching source index for http://rubygems.org/ Could not find gem 'annotate-models (= 1.0.4) ruby' in any of the gem sources listed in your Gemfile.But clearly its in my gemfile, isn't it?
source 'http://rubygems.org'
gem 'rails', '3.0.0' gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' gem 'gravatar_image_tag', '0.1.0' gem 'will_paginate', '3.0.pre2' gem 'annotate' group :development do gem 'rspec-rails', '2.0.1' gem 'annotate-models', '1.0.4' gem 'faker', '0.3.1' endI added gem 'annotate' and attempted what was recommended elsewhere on stack with no success. Any idea why it can't find the gem at the source? How could I manually override this? Thanks.
最满意答案
你得到的错误是因为rubygems.org上不存在名为“annotate-models”的宝石。
您的意思是使用注释还是注释 _模型? 他们都没有发布1.0.4版本,所以我不确定你在寻找什么样的宝石。
You're getting that error because a gem named "annotate-models" does not exist on rubygems.org.
Did you mean to use annotate or maybe annotated_models instead? Neither one of them has a version 1.0.4 published, so I'm not sure what gem you're looking for.
更多推荐
发布评论