提交 99e4ed78 编写于 作者: J Jon Moss 提交者: GitHub

Merge pull request #28301 from y-yagi/fix_direct_with_params_example

Fix `direct` with params example [ci skip]
......@@ -2054,7 +2054,7 @@ module CustomUrls
# your url helper definition, e.g:
#
# direct :browse, page: 1, size: 10 do |options|
# [ :products, options.merge(params.permit(:page, :size)) ]
# [ :products, options.merge(params.permit(:page, :size).to_h.symbolize_keys) ]
# end
#
# In this instance the `params` object comes from the context in which the the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册