未初始化的常量ActionDispatch :: Routing :: Mapper :: Scope(名称错误)

时间:2015-03-20 21:28:31

标签: ruby-on-rails

我试图调试错误。

@scope = ActionDispatch::Routing::Mapper::Scope.new(
      path:         "",
      shallow_path: "",
      constraints:  {},
      defaults:     {},
      options:      {},
      parent:       nil
    )

但我收到错误:

NameError: uninitialized constant ActionDispatch::Routing::Mapper::Scope

有什么想法吗?

我使用的是Rails 4.1.6

1 个答案:

答案 0 :(得分:0)