app assignment from ruby on rails tutorial