I made this specifically for an Artist's Loft aluminum yard/meter stick but this will work for almost any ruler as long as you scale it so the opening fits. This one is for a ruler that is 1.25" wide, and 0.075" tall. Very thin aluminum ruler. Just scale to your needs, do it non-uniformly so you can expand both dimensions separately.
Enjoy your straight lines!