annotate command not working, added it to my gemfile

Viewed 15241

My gem file looks like:

 group :development, :test do
    gem 'rspec-rails'
    gem 'annotate-models', '1.0.4'
 end

I ran 'bundle install' and it installed the annotate-models bundle.

If I type: annotate I get a command not found error.

If I type: bundle show annotate I get a 'could not find gem annotate in the current bundle.

If I type bundle show annotate-models it says it installed in:

/Library/Ruby/Gems/1.8/gems/annotate-models-1.0.4

typing:

annotate-models

doesn't work either.

I'm following along in railstutorial.org and got stuck at this point.

8 Answers

Use

gem 'annotate', '2.4.0'

instead of

gem 'annotate-models', '1.0.4'

It looks like the gem name was changed at RubyGems.org.

Related