Regarding your specific problem: you can see the error that occurred when the Rails 3.0.8.rc3 build failed, which was clicked as "rails -pre". See this issue in the Rails repository.
Instead
gem install rails --pre
gem install rails -v " >= 3.1.0rc"
3.1.0.rc1:
gem install rails --version = 3.1.0.rc1
. , , .