Run Ruby on rails application(old version)


I have a ruby on rails application which was developed using following versions;

  1. Ruby - 2.1.3
  2. Rails - 4.1.4

I have installed Ruby 2.1.9 as i couldn’t find for Ruby 2.1.3.
But unable to run ‘gem install rails -version 4.1.4’ because of the following error :

Could not find a valid gem ‘rails’ (>= 0), here is why:
Unable to download data from - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (

As I am completely new to the Ruby on Rails tech, I am not able to run this application and unable to solve the errors.

Can anybody please help me run this application?

Thanks !


I suggest you to update the RubyGems:

gem update --system

After that, you could try again.

1 Like



I have tried with ‘gem update --system’ which was throwing the error

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (

Hello @Vaidehi17,

Sorry for my late answer.

As I mentioned this issue is related to the RubyGems, so check this out: