how to install rails?

newbie in ROR.

Win XP
jruby-1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) <Java
HotSpot(TM) Client VM 1.6.0_17) [x86-java]

jruby -S gem install rails

then i got

JRuby limited openssl loaded.gem install jruby-openssl for full support.
http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
ERROR: While executing gemm .. (Gem::RemoteFetcher::FetchError)
       timed out(http://gems.rubyforge.org/gems/actionpack-2.3.5.gem)

hi
jus follow this link .....
http://nithinbekal.com/2009/09/19/setting-up-ruby-on-rails-development-environment-with-netbeans-on-windows/

for bignner dats a gud link to folow.. i jus read your header only "
how to install rails"