downgrading rails 4 to 3.2

前端 未结 6 679
醉梦人生
醉梦人生 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:02

    The answers to gem uninstall rails --version xxx should remove the rails gem just fine.

    However, in the event you want or need to have multiple versions of rails available simultaneously, you can use bundler to load the correct versions of gems (as intended).

    $ bundle exec rails in the project directory that lists the version of rails in the Gemfile should let you load the required gems without conflict.

    Additionally, rvm and its gemset feature could also let you accomplish the same goal without needing to wrap everything with a bundle exec

提交回复
热议问题