@Lee134 - Python is actually older than PHP and Ruby came out about the same time as PHP in the mid 1990's. I used to do a lot of Python and Perl CGI coding back in the early 90's, long before PHP gained acceptance.
As for installing Rails, it was a complete pain on my RHEL server. I've been administering Un*x/Linux for over 20 years now, never had as many issues installing anything, not even X back in the earliest days of linux.
After getting it installed and poking around a bit, the whole Ruby on Rails environment reminded me of JSP/Tomcat/Jakarta crossed with Cold Fusion and a hint of SmallTalk. Way too much going on behind the scenes for something Apache/PHP/MySql handle in a much simpler fashion.
HTTP 302 is a redirect code. The actual package you're trying to install is at (http://production.s3.rubygems.org/yaml) so maybe the redirect is breaking something.
Try the command "gem environment" and see if rubygems.org is in your REMOTE SOURCES