downgrading rails 4 to 3.2

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

    Rails will use the version specified in Gemfile:

    gem "rails", "4.0.0.beta1"
    

    Replace it with the version you'd like to use instead:

    gem "rails", "~> 3.2.0"
    

    Of course, you will also need to change your code and config to use the old Rails API.

提交回复
热议问题