Following the rails tutorial.