Ruby, Ruby on Rails

Rake:notes FTW!

I just found a really cool feature in Rails, can’t believe I didn’t know about it before.

Apparently you can add comments like this in your Rails app

    def uncompleted_method
      # TODO complete this method

And if you run `rake:notes` in your terminal, it will list down all the TODO comments like so


You can also use `optimize` and `fixme` with rake:notes.

    def need_to_fix
      # FIXME fix this quickly

    def optimize_this
      # OPTIMIZE this is way too slow

Running rake:notes will give you:


This is a really useful technique to maintain a running todo list/ reminder system in your Rails app


One thought on “Rake:notes FTW!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s