I am using rails version 4.2.0. How can I downgrade to version 3.2.19?
I tried the following:
- I opened command prompt.
- I typed
gem uninstall rails
- Some options came for rails version then I selected my current version and pressed entered.
- Then typed
gem install rails -v 3.2.19
for installing this version. - I went to my Site directory and typed
rails new blog
- When I opened the Gemfile of blog application I found again Rails version 4.2.0 is present there.
That is not good approach to uninstall a global version of
Rails
. So just create aRails
app:then change
Rails
version in its Gemfile, and issuebundle install
:Then, I believe, you should change all the dependent packages to older versions.
Do:
Followed by:
To check a rails version, directly do:
Another workaround:
add following to your Gemfile:
and then run:
Or you dont have to downgrade. You can always create a new rails app with a specific version(if that version is already installed)