Cool rake tricks
Wednesday, March 19th, 2008Type “rake –tasks” to see what tasks you have available. Rails (or maybe plain Ruby) gives you all kinds of neat things by default.
My favorites:
- rake routes (list rails routes)
- rake stats (show a table of LOC-style stats)
- rake db:migrate:redo (undo/redo the last migration)
- rake notes:fixme or notes:todo (list all FIXME or TODO comments, grouped by file)
