Path hints for your Rails 5 partials.
Add to your Gemfile:
gem 'active_path-path_hints'
Add the initializer config/initializers/active_path.rb
and enable ActivePath
:
ActivePath.configure do |config|
config.enabled = true
end
Path hints: (use in development only)
config.path_hints = true
HTML comments are added before and after each partial. Here is sample output:
<!-- start pages/content -->
<p>page content</p>
<!-- end pages/content -->
<!-- start example/test -->
<p>example content</p>
<!-- end example/test -->
Feel free to submit issues or help make it better.