In Ruby on Rails is there a way to put the path of every partial in an HTML comment?

Viewed 107

I work on apps that often have thousands of partials and finding what partial is rendering a section of HTML can be tedious and just waste time.

In development mode, it would sometimes be very helpful to turn on a config to have every partial used be prefaced with its path in an HTML comment so I could quickly know how to access and edit it.

Is there a config option for this or a gem that someone has made for this?

1 Answers
Related