Gain not containg the output, non ideal, resistor
Why does the close-loop gain Vo/Vi not contain the resistor Ro?


Because Ro is embedded in a feedback loop who's gain is controlled by Ra/Rf. For open loop gain Ro is part of the gain equation, in series with Vo.