Corn syrup is usually my trick for getting crushed candy canes to stick to the rim, but you could also use melted white chocolate.