我试图调试错误。
@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
答案 0 :(得分:0)
ActionDispatch::Routing::Mapper::Scoping
http://api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Scoping.html