I bought a roll of the 3M Shower Tread tape. It gives traction to the ruler, it's clear so you can see through it, and it's also easy to remove without leaving a residue. I use it on all my rulers now.
https://www.amazon.com/Safety-Walk-S...gateway&sr=8-3