Code from the Rails class at NoiseBridge on 1-29-13