sampe app rails tutorial