46

I had read through a rails book and once found we can add # TODO: and some # stuff in codes, so we can you some rake cmd to look back.

My problems is I can't find where are those "# stuff" and "rake cmd" I google and search around, but can't find and don't know what keywords to search.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
sarunw
  • 8,036
  • 11
  • 48
  • 84

4 Answers4

99

You can use # TODO, # FIXME, and # OPTIMIZE and you can easily get all of these with the following rake task: rake notes

In addition to the default annotations, you can always specify and search for your own annotations:

rake notes:custom ANNOTATION=ZOMG
Abram
  • 39,950
  • 26
  • 134
  • 184
allesklar
  • 9,506
  • 6
  • 36
  • 53
18

rake notes:todo

Robert
  • 271
  • 1
  • 3
9

btw, you need to run that command from the root dir of your rails app. Also, you can run:

rake -T

to get a full list of the tasks in your rails' Rakefile

Inaimathi
  • 13,853
  • 9
  • 49
  • 93
Robert
  • 271
  • 1
  • 3
6
grep -rn "# TODO" .
mbarkhau
  • 8,190
  • 4
  • 30
  • 34