Refactoring Logic from a Rails View
brandonhilkert.com