第29回 開発時のHTML出力にテンプレートのファイル名をコメントとして追加する
development モードと test モードのときに、HTML出力のコメントに、どのテンプレートやパーシャルを使っているのかという情報を追加できるようになった。tohosaku.icon
view の開発のときにすごく便利。
パッチ標題
Add template filenames as comments to HTML output development in development and test mode.
本文
This patch adds HTML comments to the rendered output indicating where each template begins and ends in development and test mode.
This feature has been added since rails 6.1.
開発者ツールのスクリーンショットを追加すると何をしたいのかが分かってもらいやすそう。
本家に投稿しました。tohosaku.icon