how to create a rake task


I am trying to run the 'annotate' gem to annotate my User model:

  1. If I launch the rails console, i get undefined method error for any of the 'bundle exec annotate User' or simply 'annotate'.
  2. If I browse into the annotate/bin folder under Project, and then right-click on annotate and then 'Run annotate', I get 'Can't find Rakefile. Are we in a Rails folder?' error
  3. If I try to create a rake task under Edit Configurations, it create a task but it does not show in the list of available task when I try to 'Run Rake task'

What am I missing? How can I run it?


Please sign in to leave a comment.