views:

159

answers:

4

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.

A: 

I think your PATH env variable lacks path to gems bin directory. I guess it should be: /Library/Ruby/Gems/1.8/bin

gertas
A: 

I'm having the same issue on Rails Tutorial. I'm using RVM with ruby 1.9.2dev and rails 3.0.0 and though I had no problems installing annotate-models with bundler, I get this error when I run "annotate"

$ annotate
Could not find rake-0.8.7 in any of the sources
Try running `bundle install`.
Lee McAlilly
+2  A: 
ajivani
+1  A: 

You should run the command inside your bundled environment with:

$ bundle exec annotate

Check out the man page for more details.

eric