Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Used gem install rails and now I have 4.0.0.rc1 - I want Rails 3

How can I switch back?

I installed RVM, then installed Ruby 1.9.3, then ran gem install rails.

Running rails -v I can see that I have Rails 4.0.0.rc1 and I don't want to use that version as it's not supported on my hosting provider.

How can I install Rails 3.2.13 and have that be used as default when running rails new commands?

like image 478
sergserg Avatar asked Jun 01 '13 20:06

sergserg


People also ask

How do I install a specific version of Rails?

To install Rails, use the gem install command along with the -v flag to specify the version. For this tutorial, you'll use version 6.1. 4.1 : gem install rails -v 6.1.


3 Answers

Try:

gem uninstall rails

gem install rails --version "=3.2.13"
like image 193
KenB Avatar answered Oct 06 '22 06:10

KenB


Try: gem install rails --version 3.2.13 --no-ri --no-rdoc

(--no-ri --no-rdoc) is optional to speed up the process and skip rdoc generation etc.

like image 31
wrdevos Avatar answered Oct 06 '22 05:10

wrdevos


gem install rails -v 3.2.13 --no-ri --no-rdoc
like image 26
Rajeev Sharma Avatar answered Oct 06 '22 06:10

Rajeev Sharma