Problems upgrading Rails 4.0.0 to 4.0.x (4.0.13) - private method `include' called for ActionDispatch::Assertions:Module (NoMethodError)

試著忘記壹切 提交于 2021-01-28 05:11:13

问题


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.

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)

I received this through rspec and WEBrick.


回答1:


I found a solution via another issue from layer-ruby: NoMethodError: private method `include' called for #-Class:#-Layer::RelationProxy:0x007fd1f67016e0--

geoffreymm discovered that install Ruby 2.2.0 Fixed the issue.

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



来源:https://stackoverflow.com/questions/57084844/problems-upgrading-rails-4-0-0-to-4-0-x-4-0-13-private-method-include-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!