An implementation of doing things the "Rails" way as described in this gist: https://gist.github.com/FluffyJack/9409243