SnipSnip tells you what you selected that you shouldn't have in a Rails controller action.
Add this line to your application's Gemfile:
gem 'snip_snip'
And then execute:
$ bundle
Or install it yourself as:
$ gem install snip_snip
Open snip-snip.log
:
$ tail -f log/snip-snip.log
Hit a controller action and see the output.
Bug reports and pull requests are welcome on GitHub at https://github.com/kddnewton/snip_snip.
The code is available as open source under the terms of the MIT License.