for the rails tutorial