Copy edits in the documentation [ci skip]

上级 03b9a11f
* Add `:as` option to `ActionController:TestCase#process` and related methods.
Specifying as: :mime_type allows the `CONTENT_TYPE` header to be specified
in controller tests without manually doing this through `@request.headers...`
Specifying `as: mime_type` allows the `CONTENT_TYPE` header to be specified
in controller tests without manually doing this through `@request.headers['CONTENT_TYPE']`.
*Everest Stefan Munro-Zeisberger*
* Show cache hits and misses when rendering partials.
......
......@@ -450,7 +450,7 @@ def xml_http_request(*args)
# - +flash+: A hash of parameters to store in the flash. This may be +nil+.
# - +format+: Request format. Defaults to +nil+. Can be string or symbol.
# - +as+: Content type. Defaults to +nil+. Must be a symbol that corresponds
# to a mime type
# to a mime type.
#
# Example calling +create+ action and sending two params:
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册