Fix typo on error message when route definition is ambiguous.

上级 387b7751
......@@ -1837,7 +1837,7 @@ def map_match(paths, options)
path_types.fetch(String, []).each do |_path|
route_options = options.dup
if _path && option_path
raise ArgumentError, "Ambigous route definition. Both :path and the route path where specified as strings."
raise ArgumentError, "Ambiguous route definition. Both :path and the route path where 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.
先完成此消息的编辑!
想要评论请 注册