将 Rails 4.0.0 升级到 4.0.x (4.0.13) 时出现问题 - 为 ActionDispatch::Assertions:Module (NoMethodError) 调用私有方法“include" [英] Problems upgrading Rails 4.0.0 to 4.0.x (4.0.13) - private method `include' called for ActionDispatch::Assertions:Module (NoMethodError)

查看:87
本文介绍了将 Rails 4.0.0 升级到 4.0.x (4.0.13) 时出现问题 - 为 ActionDispatch::Assertions:Module (NoMethodError) 调用私有方法“include"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在任何地方都找不到对此的直接"答案.因为我知道派对上还会有许多其他迟到的升级者",所以我觉得我需要解决这个问题.

I could not find a "direct" answer to this anywhere. Since I know there will be many other "Late Upgraders" to the party, I feel I need to get this out.

我有一个运行 Ruby 2.0.0-p247 的 Rails 4.0.0 应用程序.升级到 4.0.13 后,我遇到了这个错误:

I had a Rails 4.0.0 app running Ruby 2.0.0-p247. After upgrading to 4.0.13, I ran into this error:

private method `include' called for ActionDispatch::Assertions:Module (NoMethodError)

我是通过 rspec 和 WEBrick 收到的.

I received this through rspec and WEBrick.

推荐答案

我通过来自 layer-ruby:NoMethodError:私有方法 `include' 调用 #-Class:#-Layer::RelationProxy:0x007fd1f67016e0--

geoffreymm 发现安装 Ruby 2.2.0 解决了这个问题.

geoffreymm discovered that install Ruby 2.2.0 Fixed the issue.

我安装了 Ruby 2.2.5,它确实为我解决了问题.

I installed Ruby 2.2.5, and it did indeed solve the issue for me.

这篇关于将 Rails 4.0.0 升级到 4.0.x (4.0.13) 时出现问题 - 为 ActionDispatch::Assertions:Module (NoMethodError) 调用私有方法“include"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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