rails/rails — pull request #8654 by JordiPolo (2012-12-30 02:52:48+00:00)
Title: use respond_with to DRY scaffold generator output

respond_with has been around for some time and it really helps to keep the controller DRY. If you see the file before and after I think you will agree is an improvement.
I think making the generator to use respond_with by default Rails will promote its use.
In my experience many Rails developers still do not know about it.

This is my first contribution to Rails, if I may have overlooked something and something is lacking in the PR, please point it to me and I'll work on the details.