Frank Webber recorded a great video on removing if statements from your code just recently. The result is a pretty strong refactor that removes the complexity involved with large if statements.
Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more
Refactoring If Statements
Chris Oliver
April 25, 2013
P.S. You might enjoy following me on Twitter.