If you work with designers or getting to grip with a new codebase you may find yourself frequently answering the question ‘What template generates this bit of html’. This smidgen of code adds comments to your html with the path to the templates used. For example the template
1 2 |
|
might generate
1 2 3 4 5 6 |
|
You can grab the code from github. Original idea from this thread on rails-talk