Installing Ruby 2.4 without Tears on Windows
First we need to
1. Download ruby installer from here,
2. Download msys2 installer and install it. It is all right if you don't. Step 3 will force you to do it. :)
3. Run ruby installer. At the end of it, installer is intelligent enough to prompt you to install MSYS2.
You basically need to go through all 3 option prompted.
1. MSYS base installation
2. MSYS2 System update
3. MSYS2 and MingGW development toolchain
Once you have done that, open up command prompt and start installing your gems, for example :-
gem install rails.