Not sure where the problem is but with Rails 3.1 I can't use annotate-models.
If I run annotate
the error trace suggests that the script isn't detecting Rake.
A temporary fix is simple:
- open annotations.rake. If you're using RVM, the full path is different from mine, so it's useless to paste it here.
- Add
require 'rake'
at the beginning of the file and save. - Now it should work properly.
I haven't tested with other configurations, but works for me.