Rails installation problem

windows just installed, my problem on picture:

Error: Could not find a valid gem ‘rails’ bla bla

https://yadi.sk/i/bJLs7mEfeCYzd

it helps me:

gem sources -r https://rubygems.org/
gem sources -a http://rubygems.org
gem update --system
gem install rails

https://yadi.sk/i/VkhhVIDweCZA6

now new problem:
rails new test
good bla bla
Gem::InstallError: The ‘json’ native … bad bla bla

https://yadi.sk/i/TfaxD8X6eCZDD

now new problem:
rails new test
good bla bla
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 … very bad bla
bla
https://yadi.sk/i/p3150IQHeCZmo

it helps me:
I download development kit for my ruby21
unpucked it to c:\ruby21\dk
cd c:\ruby21\dk
ruby dk.rb init
ruby dk.rb review
ruby dk.rb install
restart cmd
cd c:\ruby21\bin
gem install json --platform=ruby
json-1.8.2.gem installed

rails is gone somewhere! ((

gem install rails

rails new test -B (run without bundle)
now edit gemfile:
source ‘http://rubygems.org
bundle install

wow! seems ok…

https://yadi.sk/i/nqhZWf97eCZt4

everything works!
https://yadi.sk/i/HBv4vnfbeCZv6