Another way to rim the glass-
Wipe rim with a cut lime. Dip into coarse salt, 1/8 inch.
A Mexican ('Key') lime is preferred. The drink will be less sweet than if the usual large lime is used.
Many stories about the origin, but most seem to come from the 1930s.