Annotate rendered view with template file names as HTML comments
What does this MR do and why?
Enables config.action_view.annotate_rendered_view_with_filenames to add HTML comments with the filename of each rendered partial.
This config option is available since Rails 6.1 and is an absolute lifesaver when you are new to the codebase, and/or want to make changes to an area of it that you've never touched before. Just open the browser dev tools, select the element you want to change and the nearest HTML comment tells you which view/partial to edit.
Screenshots or screen recordings
How to set up and validate locally
F11
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
