Ruby bniary installation on windows


I want to install ruby without the one click installer, so I can install
only what I would need; has anybody done this? and what are the steps to
do it?
I’m going to be using rails, so it’s ruby, rails, gems, etc.
if sombody can give me a hint