The use the ruler, simply mark the outer strings on the nut and then match up 2 lines on the ruler with these outer string marks, using the lines on the ruler between the outer strings marks, mark each remaining string position on the nut (each line on the ruler represents a string, so the outer strings should be 6 lines apart for a normal guitar).
eBay