the tutorial from rails tutorial