Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が取り組んでいるこのプロジェクトには多くの .erb ファイルがあり、ブラウザから簡単にデバッグできるようにするために、各テンプレート ファイルのパスをソースで非表示にしたい (開発のみ) ように<!-- BEGIN /path/to/file -->します。<!-- END /path/to/file -->
<!-- BEGIN /path/to/file -->
<!-- END /path/to/file -->
render使用しているテンプレートのパスをすべてのレンダリングの先頭に追加するように変更するにはどうすればよいですか?
render
私がこれに使用している要点を見てください:
https://gist.github.com/1386152
およびレール 2 の場合
https://gist.github.com/905286