What you have drawn would work, but it has the disadvantage of always drawing current. In fact it draws more current when the output is off. The bottom resistor is shorted out so total resistance goes down an current goes up.
If you look at the drawing Sam posted, I prefer to put the switch between the bottom of Rtop and the junction for Vout. With that arrangement when the switch is closed current flows through both resistors and Vout will register some voltage based on the ratio of the two resistors.
When the switch open, current flow stops and Vout will be pulled down to something very near ground through Rbottom.
Mike...