提交 d692b829 编写于 作者: J Jack Danger Canty

Using the real resolver pattern in docs

If someone copies the docs into their app they'll find it simply doesn't
work because the locale pattern doesn't have the same logic. This makes
the doc examples work exactly as written.

[ci skip]
上级 ffb6d37c
......@@ -289,7 +289,7 @@ def extract_handler_and_format_and_variant(path, default_formats)
#
# ActionController::Base.view_paths = FileSystemResolver.new(
# Rails.root.join("app/views"),
# ":prefix{/:locale}/:action{.:formats,}{+:variants,}{.:handlers,}"
# ":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}",
# )
#
# ==== Pattern format and variables
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册