using rails tutorial