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

Kai Lee
Kai Lee
6,814 Points

Error: Could not find a valid gem 'rails' Unable to install rails

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)

3 Answers

Kai Lee
Kai Lee
6,814 Points

ha! finally got it working after few hours of digging and researching! it was a SSL Certificate error. Just followed the instruction in http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages, copy and paste the new trust certificate. Everything is well and running now! Thank you!

Kai,

Installing a rails environment on windows is a huge pain. It only gets tougher trust me. Your going to run into a ton of problems and its honestly more pain and effort than it is worth. In my opinion your best option is to learn to use a cloud IDE, or web-based integrated development platform. This is by far the best solution for a solid rails development environment on windows.

It's very easy to learn. In fact you should just do the first chapter in Michael Hartl's Rails tutorial to not only learn to use a cloud IDE (Cloud 9) but also how to deploy your rail apps through Heroku.

Michael Hartl's tutorial is free. It's also a great supplement to Treehouse's material on Rails if you want to read into the whole thing. Here is the link: https://www.railstutorial.org/book .

Matthew

Kyle Shamblin
Kyle Shamblin
9,945 Points

Will this work for the treehouse tutorial?

Mike Hickman
Mike Hickman
19,817 Points

Hi Kai-

I'm not exactly sure when you're getting this error, but it looks like it's because of SSL / HTTPS. If this is happening when you're trying to run bundle install, try changing the top of your GEMFILE to source 'http://rubygems.org' (removing the S in https) and see if that works.

Hard to help without more info. Good luck!

Mike