Instead of walking along two adjacent sides of a rectangular field, a boy took a short-cut along the diagonal of the field and saved a distance equal to half of the longer side. Find the ratio of the length of the shorter side to that of the longer side of the field.