My attempt at Daniel Kehoe's rails tutorial