Answer:
If you're asking for Microsoft Word, then you press File View to show and hide the ruler.
Step-by-step explanation:
To see the ruler, you go into Files, then Options, and then Advanced. In there, will be "Show Vertical Ruler", in the Print Layout View.