You're viewing a post from the archive. Don't forget to checkout our latest post HTML5-powered Ajax file uploads

It's frustrating when you're viewing a rails app in the browser, and you want to start editing a section of the page, but need to spend time figuring out which partial/template that section comes from.

Partial Identifier

It would be so good if you could just click on that section in your browser, then have textmate, etc. open it up automatically.

So I created a plugin to do just that.

Once installed, whenever you press Shift+Ctrl+P (in development mode only) you will see a template stack list for that part of the page in the upper left corner of the page.

What's more, clicking on one of those links will open the file in Textmate if you have it.

It's a fairly rough-and-ready plugin, but it works well. As far as I know it works with Rails 2.x. Please feel free to contribute via github for improvements!

You can install it in the usual way for github plugins:

script/plugin install git://github.com/markevans/partial_identifier.git

For more details, see the partial identifier page on github.