Annotate Model Gemのコマンドを実行してモデルに注釈を付けると、次のエラーが表示され、次の 2 つの方法で gem をインストールしました。
$ annotate --exclude tests, fixtures
c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
from c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/annotate-2.5.0/bin/annotate:3:i
from c:/Ruby192/bin/annotate:19:in `load'
from c:/Ruby192/bin/annotate:19:in `<main>'
$ bundle exec annotate --exclude tests, fixtures
c:/Ruby192/lib/ruby/gems/1.9.1/gems/annotate-2.5.0/bin/annotate:3:in `require': no such file to load -- rake/dsl_definition (LoadError)
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/annotate-2.5.0/bin/annotate:3:in `<top (required)>'
from c:/Ruby192/lib/ruby/gems/1.9.1/bin/annotate:19:in `load'
from c:/Ruby192/lib/ruby/gems/1.9.1/bin/annotate:19:in `<main>'
Gemfile
gem "rails", "3.1.0"
gem "rake", "0.8.7"
group :development do
gem "annotate", "2.5.0"
end
コマンドライン:
$ gem install annotate
Successfully installed annotate-2.5.0
1 gem installed
この宝石を機能させるにはどうすればよいですか?