Repository is archived
No commit activity in last 3 years
No release in over 3 years
Inserts an HTML comment at the beggining and ending of html partials with the path to the partial, so that "view vource" can tell you exactly what partial is responsible for the piece of HTML you're looking at. Limited to files ending with .html,.haml,.erb, and .rhtml and Rails 3.0.x ONLY. See https://github.com/gwshaw/noisy_partials for a 3.1 compatibile version
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.0.0
 Project Readme

Transforms dev html from this

<foo>
  <bar>baz</bar>
</foo>

into this...

<!-- BEGIN /path/to/foo.html.erb -->
<foo>
  <bar>baz</bar>
</foo>
<!-- END /path/to/foo.html.erb -->

when in development mode.

Place in the development section of your gem file to add html comments at the start and end of partial rendering, so you can see which partial is creating the HTML code you're interested in.

WARNING: THIS IS FOR RAILS 3.0.x ONLY

See https://github.com/gwshaw/noisy_partials for a 3.1+ compatibile version

Install with:

group :development do
  gem "noisy_partials_for_rails_3"
end

Originally by Gwyn Morfey (2008), adapted to Rails 3.1 by George Shaw (2013) and backported to Rails 3.0 by masukomi (2013)