Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Installing Rails on Windows

Kyle Shamblin
Kyle Shamblin
9,945 Points

Error: Could not find a valid gem 'rails' Unable to install rails unable to download data ssl connect returned:0 errno:1

I read in the other answers that it might be better to deploy through Cloud 9 because windows has a lot of issues with rails. Can anyone at treehouse verify this? Will Cloud 9 work fine for this tutorial?

2 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Just to make sure, you're following along with this workshop, right? We've tested all the directions in that workshop on Windows and they should work fine. That said, it's possible for individual setups to have quirks that prevent installing and running Rails successfully.

This could just be a temporary network issue, though. I'd recommend trying again and see if it's working now. Failing that, you might try the tips in this StackOverflow answer.

Although I don't see any reason it wouldn't work, we have not tested any of this content on Cloud 9. If you try that route, please let us know how it goes!

Kyle Shamblin
Kyle Shamblin
9,945 Points

I'm still having issues, I'm going to learn how to use Cloud 9 and I'll be sure to let you know it works. Hopefully I'll be able to use older versions of Rails (5.0.0) for the tutorial...anyways thanks for your response, Jay!

Kyle Shamblin
Kyle Shamblin
9,945 Points

I got everything working properly on cloud9 there are just a few differences I have to remember when following along on the course. Thank you!

Thomas Beaudry
Thomas Beaudry
29,084 Points

Followed everything to the letter, and 3 times it came up with this response:

C:\RubyDevKit>gem install rails --version 5.0.0 ERROR: Could not find a valid gem 'rails' (= 5.0.0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

Thomas Beaudry
Thomas Beaudry
29,084 Points

It seems as though there are security issues installing Rails on Windows. This is what I did to get it to work: gem sources -a http://rubygems.org answer "Y" to security question Then Typed: gem install rails --version 5.0.0 and worked fine.