Refactoring Logic from a Rails View | Hacker News Reader