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 Build a Simple Ruby on Rails Application Getting Started with Rails Generate a Rails Application

rails program

can I use RubyMine 7 for this course? The versions I downloaded of Sublime and the recommended ruby rails is not working.

17 Answers

Tim Knight
Tim Knight
28,888 Points

In the case of this error message you're likely getting from connectivity issues or potentially because of issues with the Ruby installation. I'm going to lean toward connectivity issues. You can try running it again to see if you still get the same issue. Another option would be to add the source attribute and use the none HTTPS version to see if that works for you to get you started.

gem install rake -v 10.4.2 --source http://rubygems.org

Tim Knight
Tim Knight
28,888 Points

Hi LeJacque, you should be able to use RubyMine just fine throughout the course. Just keep in mind that RubyMine itself is a much larger application and has a lot of additional functionality that won't be covered through the courses here. It's a beast in itself.

Now when you mentioned that your current version of Ruby on Rails isn't working can you tell me a little more about that? Are you using the Treehouse virtual machine or did you install it on your local computer? Are you running Windows or Mac? Is there a specific error message that it's giving you?

Thanks for your response. I am running window 8.1. When I start the Ruby command prompt (I downloaded it and Sublime) I keep getting :

DL is deprecated, use FIDDLE.

Then when I start a new project with rails new (project name) it creates the files then says:

an error occurred while installing rake <10.4.2>, and Bundler cannot continue. Make sure that 'gem install rake -v '10.4.2' succeeds before bundling.

Tim Knight
Tim Knight
28,888 Points

LeJacque,

The message you're receiving for DL is deprecated, use FIDDLE is actually just a deprecation warning and is common on Ruby 2.0 under Windows. You can read more about that here. Short answer really is that it can be ignored.

As for the bundler issue it seems that you just need to update your version of rake before installing Rails. So before executing the rails new command, run this:

gem install rake -v 10.4.2

within your command line.

I will do that, thanks a lot for your time and assistance.

Well, I tried what you said and received this message

ERROR: Could not find a valid gem 'rake' (= 10.4.2), 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.rubyg ems.org/specs.4.8.gz)

any suggestions?

Thank You, I will try that in a bit. I sent the rubygem folks a copy of the message also so I'm still waiting to here back from them as well. I am excited to get going.

it looks like that did it. Thanks a lot for your time and assistance.

Tim Knight
Tim Knight
28,888 Points

Excellent LeJacque, good luck with your jump into Rails. Have fun!

thanks. it did download, however, I get the same message for another gem and it's a cycle from there. I install the next gem with the same code you gave me, it installs, then another pops up. I'm trying to research the problem now.

I have gotten this far. and I'm running RubyMine 7 on Windows 8.1 using Google Chrome.

DL is deprecated, please use Fiddle Fetching gem metadata from https://rubygems.org/.......... Resolving dependencies... Using rake 10.4.2 Using i18n 0.7.0 Using json 1.8.2 Using minitest 5.5.1 Using thread_safe 0.3.5 Using tzinfo 1.2.2 Using activesupport 4.1.8 Using builder 3.2.2 Using erubis 2.7.0 Using actionview 4.1.8 Using rack 1.5.2

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rack-test-0.6.3.gem) An error occurred while installing rack-test (0.6.3), and Bundler cannot continue. Make sure that gem install rack-test -v '0.6.3' succeeds before bundling.

C:\Users\yuriana\RubymineProjects\test4>cd treebook

C:\Users\yuriana\RubymineProjects\test4\treebook>bundle install DL is deprecated, please use Fiddle Fetching gem metadata from https://rubygems.org/.......... Resolving dependencies... Using rake 10.4.2 Using i18n 0.7.0 Using json 1.8.2 Using minitest 5.5.1 Using thread_safe 0.3.5 Using tzinfo 1.2.2 Using activesupport 4.1.8 Using builder 3.2.2 Using erubis 2.7.0 Using actionview 4.1.8 Using rack 1.5.2

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rack-test-0.6.3.gem) An error occurred while installing rack-test (0.6.3), and Bundler cannot continue. Make sure that gem install rack-test -v '0.6.3' succeeds before bundling.

C:\Users\yuriana\RubymineProjects\test4\treebook>gem install rack-test -v 0.6.3 --source http://rubygems.org Fetching: rack-test-0.6.3.gem (100%) Successfully installed rack-test-0.6.3 Parsing documentation for rack-test-0.6.3 Installing ri documentation for rack-test-0.6.3 Done installing documentation for rack-test after 2 seconds WARNING: Unable to pull 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) 1 gem installed

C:\Users\yuriana\RubymineProjects\test4\treebook>rails server Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine. Run bundle install to install missing gems.

C:\Users\yuriana\RubymineProjects\test4\treebook>Ma_?Ma_?Ma_?

Tim Knight
Tim Knight
28,888 Points

Have found this article in your research of the issue? Seems this could help you address the core problem which is regarding the connectivity to RubyGems.

https://gist.github.com/luislavena/f064211759ee0f806c88

C:\Users\yuriana\RubymineProjects\test4\treebook>gem install tzinfo-data (>= 0) x86-mingw32 --source http://rubygems.org WARNING: Unable to pull data from 'https://rubygems.org/': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems .org/latest_specs.4.8.gz) ERROR: Could not find a valid gem '(' (>= 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.rubyg ems.org/latest_specs.4.8.gz)

I will check it out now. thanks.

Tim Knight
Tim Knight
28,888 Points

Let us know how that comes out for you. The only section I think that you need to apply is the "Installing using update packages (NEW)". I imagine that you'll probably be in the 2.2 group if your installation is fairly new. You can double-check your current version of Rubygems by typing gem --version. If you are in that group, you'd click that link and then download the rubygems-update-2.2.3.gem file somewhere you remember on your computer. Then just follow the instructions to manually update.

Another option here, if you installed Ruby with RubyInstaller for Windows, you might just consider installing to the latest update for 2.2.1 and that could possibly fix the issue with Rubygems as well. See: http://rubyinstaller.org/news/2015/03/06/rubyinstaller-2-2-1-released/

Ok, nothing has worked. I've been reading, downloading, and running codes all night. I just deleted all of ruby off of my computer with the exception of RubyMine7, I have a few weeks left on the 30 day trial. My goal from here is to redownload a version of Ruby that I can use. Any suggestions?

And I really do appreciate all of the help you've given me thus far. It seems every route I go I get an error. If I clear up one error, I receive another error of some sort. O've tried replacing the certificate with cacert.pem. I've been on stackoverflow and github researching info as well.

Tim Knight
Tim Knight
28,888 Points

I think you're on the right path in terms of uninstalling Ruby. Here's what I'd also suggest:

  1. Goto http://rubyinstaller.org/downloads/ to download the officially Ruby installation for Windows.
  2. Download the 2.2.1 release.
  3. Once you've installed use the command prompt to do a gem install rails and create your project that way.

Sometimes RubyMine will use it's own version of Ruby and you can get some issues if you didn't select the right Ruby version in the application's configuration. If you're new to Ruby I'd suggest just using something like Sublime Text for now because it doesn't have those added features that you won't be using during your classes. Go back to RubyMine later on if you find it's the best fit for you.

Thanks, I've downloaded ruby again and put the commands you said. It seems that everything loaded fine except a file json. The message told me to download a DevKit, which I did. then I went to github to install it but keep getting a message that dk.rb doesn't exist. i'm now downloading a VMware player and Ubuntu and plan on following some instructions from stackoverflow.

Tim Knight
Tim Knight
28,888 Points

Have you also gone through the course for your development environment?

http://teamtreehouse.com/library/installing-a-ruby-development-environment

I have not. I wasn't aware of the course, or, might have overlooke it. Either way, I will sit down and go through it today. Thank you for poining it out to me. And thanks again for all of your help and patience.

Hello, I´ve made progress. I´ve followed the video for installing in windows step by step. All seems to load fine, but when I run ¨bundle exec rails server¨I get an error:

cannot load such file -- sqlite3/sqlite3_native (load error)

I re-added the gem and got the same error. I went to stackoverflow and followed this and got the same error:

Is that file (/sqlite3/sqlite3_native) in your PATH environment variable? It will need to be in order for that gem to work. If you need to check try using echo %PATH% on the command prompt. If it ends up that you need to add it to your path you can either SET PATH=%PATH%;C:\Path\To\Sqlite3

All suggestions are welcomed. Thanks.

Tim Knight
Tim Knight
28,888 Points

You're a little out of my area of expertise since I haven't used Windows for sometime. What you might consider doing though, since your question has going through a few iterations, is open up a new tread for this new issue. That way someone more familiar with the problem would see the new title related specifically to SQLite and offer additional assistance.

Thanks a lot for getting me this far.