ruby on rails tutorial sample appi