I just saw this tip on Fons and Porter but already use it myself.
Put a piece of Glad Press and Seal on the back of your ruler to keep it from slipping. It has a low tack like a sticky note.
It works for me. Hope this helps someone from the frustration.
Laura