前提
- Model はすでに作ってあるものとします
手順
1. Gemfile に書く
(省略) gem 'annotate' (省略)
2. bundle install
$ bundle install
3. bundle exec annotate
$ bundle exec annotate Annotated (3): app/models/user.rb, test/models/user_test.rb, test/fixtures/users.yml
(省略) gem 'annotate' (省略)
$ bundle install
$ bundle exec annotate Annotated (3): app/models/user.rb, test/models/user_test.rb, test/fixtures/users.yml