Kevin Rutherford and I wrote this article for Better Software magazine; it was the cover article in the July/August 20122 issue.
It demonstrates refactoring in Ruby, using a basic “todo” list application.
“When Software Smells Bad” (PDF), by Bill Wake and Kevin Rutherford, Better Software, July/Aug. 2011