views:

82

answers:

4
+2  Q: 

# TODO in rails

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.

Thanks,

+1  A: 

rake notes:todo

Robert
+1  A: 
grep -rn "# TODO" .
mbarkhau
+2  A: 

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

Robert
This is also useful. Thanks
art
+7  A: 

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

allesklar