downgrading rails 4 to 3.2

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

    You have the same problem as listed here.

    Here is what worked for me, and should also for you. It's a more general solution that works regardless of your specific version of the Rails beta. Please note that in order to shift back to 3.2.13 (or whatever version you'd like to go back to), you must remove Railties as well as Rails.

    Just do:

    gem uninstall rails

    Then, select the version of Rails 4 you have and delete it.

    Then, do:

    gem uninstall railties

    And do the same thing.

    When I uninstalled the Rails 4 version of railties, it told me that dependencies for a couple gems (coffee-rails and sass-rails) wouldn't be met. So I just did the same thing with both of them as I did above, and deleted their Rails 4 versions as well (for example, for sass-rails, I had a version installed called sass-rails-4.0.0.rc1).

    And done! The terminal should list 3.2.13 as your current Rails version.

提交回复
热议问题