downgrading rails 4 to 3.2

前端 未结 6 691
醉梦人生
醉梦人生 2020-12-16 04:39

I have the Rails 4.0.0.beta1 installed but I need downgrade to Rails 3.2.13.

I\'ve used gem install rails 3.2 but Rails continues as 4.0.0.beta1.

<
6条回答
  •  太阳男子
    2020-12-16 05:16

    I had the same problem with Rails 4.0.0 final version. To check what is currently installed you can run the following:

    >pik gem list
    

    Then I checked the rails versions. It showed rails 3.2.14 (what I wanted) with railties 4.0.0, 4.0.0.rc2 and 3.2.14.

    I then ran

    >gem uninstall railties
    

    and uninstalled all other versions except 3.2.14 and now it works well. The problem was that when Rails 3.2 installation is called, the latest (or all) versions of railties is installed.

    If you have other versions of rails other tan the one you want, you can removed them with

    >gem uninstall rails
    

    and remove the versions of rails you do not want to have.

提交回复
热议问题