Skip to content

Instantly share code, notes, and snippets.

@cloud8421
Created May 12, 2011 10:19
Show Gist options
  • Save cloud8421/968286 to your computer and use it in GitHub Desktop.
Save cloud8421/968286 to your computer and use it in GitHub Desktop.
Quick and dirty fix for annotate-models and Rails 3.1 beta

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment