提交 5bdf50db 编写于 作者: O Oscar Del Ben

Warn about do end syntax in redirect option

上级 8d2487d9
......@@ -72,6 +72,9 @@ module Redirection
# "http://#{request.host_with_port}#{path}"
# }
#
# Note that the `do end` syntax for the redirect block wouldn't work, as Ruby would pass
# the block to `match` instead of `redirect`. Use `{ ... }` instead.
#
# The options version of redirect allows you to supply only the parts of the url which need
# to change, it also supports interpolation of the path similar to the first example.
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册