未验证 提交 842bc456 编写于 作者: Z Zoran Pesic

fix typo in ambiguous route definition error message

上级 a90e3815
......@@ -1851,7 +1851,7 @@ def map_match(paths, options)
path_types.fetch(String, []).each do |_path|
route_options = options.dup
if _path && option_path
raise ArgumentError, "Ambiguous route definition. Both :path and the route path where specified as strings."
raise ArgumentError, "Ambiguous route definition. Both :path and the route path were specified as strings."
end
to = get_to_from_path(_path, to, route_options[:action])
decomposed_match(_path, controller, route_options, _path, to, via, formatted, anchor, options_constraints)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册