I spray the back of my rulers with basting spray, then lightly rub the excess off. It grips the fabric fairly well. The first few times you use it, it grips too well, but after that it grips just right.
And, of course, if you don't like it, you can wash it off.