This may or may not apply to what you are trying to do, but I apply a thin line of clear nail polish along the edge of my rulers, then sprinkle the wet polish with table salt. This helps keep my ruler from sliding around without obscuring my the lines on the ruler.