How can I remove Ruby on Rails 4 beta?

后端 未结 5 1374
不思量自难忘°
不思量自难忘° 2021-02-15 12:49

I\'m new to Ruby and Rails and I installed the latest beta version of Rails 4 on my Mac, before I installed RVM to manage my versions. The Rails 4 beta is becoming a huge pain i

5条回答
  •  無奈伤痛
    2021-02-15 13:02

    I had the same problem as ckarbass (Rails was still set at 4.0.0.rc1 when I entered rails -v). To solve it, I used Bernard Potocki's advice, but took into consideration that I had a different version.

    To make it possible for whatever version you may have, 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 now lists 3.2.13 as my current Rails version.

提交回复
热议问题