将Rails 4降级为3.2 [英] downgrading rails 4 to 3.2

查看:67
本文介绍了将Rails 4降级为3.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Rails 4.0.0.beta1,但是我需要降级到Rails 3.2.13.

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

我用过gem install rails 3.2,但Rails仍为4.0.0.beta1.

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

我搜索了现有的疑问并尝试遵循答案,但是没有一个对我有用.

I searched existing doubts and try to follow the answers however none worked for me.

这是一个简单的疑问,我需要解决.

Think this is a simple doubt and I need to solve.

这回答了我的问题:如何设置项目的默认Rails版本?

推荐答案

您遇到的问题与列出的

You have the same problem as listed here.

这是对我有用的,也应该对您有用.无论您使用的是哪个特定的Rails beta版本,它都是一种更通用的解决方案.请注意,要移回3.2.13(或您要返回的任何版本),必须删除Railties和Rails.

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.

只需:

gem uninstall rails

然后,选择您拥有的Rails 4版本并删除它.

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

然后,做:

gem uninstall railties

做同样的事情.

当我卸载Rails 4版本的Railties时,它告诉我,无法满足几个gem(咖啡轨和sass-rails)的依赖关系.因此,我对他们两个都执行了与上面相同的操作,并删除了它们的Rails 4版本(例如,对于sass-rails,我安装了一个名为sass-rails-4.0.0.rc1的版本).

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).

完成!终端应将3.2.13列为当前的Rails版本.

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

这篇关于将Rails 4降级为3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆