Quickly disable Rails view sections
Posted November 19th, 2008
Here's a quick snippet I use for quickly disabling chunks of view code.
To use this, just drop the following into your application helper:
Of course, you could just surround your code with <% if false %><% end %> but I think using this simple helper makes the intent slightly clearer.