Use fixed fonts only in the name of the parameter

上级 0eb3ba0e
......@@ -494,11 +494,11 @@ def determine_default_controller_class(name)
# Simulate a GET request with the given parameters.
#
# - +action+: The controller action to call.
# - +params:+ The hash with HTTP parameters that you want to pass. This may be +nil+.
# - +body:+ The request body with a string that is appropriately encoded
# - +params+: The hash with HTTP parameters that you want to pass. This may be +nil+.
# - +body+: The request body with a string that is appropriately encoded
# (<tt>application/x-www-form-urlencoded</tt> or <tt>multipart/form-data</tt>).
# - +session:+ A hash of parameters to store in the session. This may be +nil+.
# - +flash:+ A hash of parameters to store in the flash. This may be +nil+.
# - +session+: A hash of parameters to store in the session. This may be +nil+.
# - +flash+: A hash of parameters to store in the flash. This may be +nil+.
#
# You can also simulate POST, PATCH, PUT, DELETE, and HEAD requests with
# +post+, +patch+, +put+, +delete+, and +head+.
......@@ -574,11 +574,11 @@ def paramify_values(hash_or_array_or_value)
# - +action+: The controller action to call.
# - +method+: Request method used to send the HTTP request. Possible values
# are +GET+, +POST+, +PATCH+, +PUT+, +DELETE+, +HEAD+. Defaults to +GET+. Can be a symbol.
# - +params:+ The hash with HTTP parameters that you want to pass. This may be +nil+.
# - +body:+ The request body with a string that is appropriately encoded
# - +params+: The hash with HTTP parameters that you want to pass. This may be +nil+.
# - +body+: The request body with a string that is appropriately encoded
# (<tt>application/x-www-form-urlencoded</tt> or <tt>multipart/form-data</tt>).
# - +session:+ A hash of parameters to store in the session. This may be +nil+.
# - +flash:+ A hash of parameters to store in the flash. This may be +nil+.
# - +session+: A hash of parameters to store in the session. This may be +nil+.
# - +flash+: A hash of parameters to store in the flash. This may be +nil+.
#
# Example calling +create+ action and sending two params:
#
......
......@@ -12,14 +12,14 @@ module RequestHelpers
#
# - +path+: The URI (as a String) on which you want to perform a GET
# request.
# - +params:+ The HTTP parameters that you want to pass. This may
# - +params+: The HTTP parameters that you want to pass. This may
# be +nil+,
# a Hash, or a String that is appropriately encoded
# (<tt>application/x-www-form-urlencoded</tt> or
# <tt>multipart/form-data</tt>).
# - +headers:+ Additional headers to pass, as a Hash. The headers will be
# - +headers+: Additional headers to pass, as a Hash. The headers will be
# merged into the Rack env hash.
# - +env:+ Additional env to pass, as a Hash. The headers will be
# - +env+: Additional env to pass, as a Hash. The headers will be
# merged into the Rack env hash.
#
# This method returns a Response object, which one can use to
......
......@@ -483,12 +483,12 @@ The `get` method kicks off the web request and populates the results into the re
* The action of the controller you are requesting.
This can be in the form of a string or a symbol.
* `params:` option with a hash of request parameters to pass into the action
* `params`: option with a hash of request parameters to pass into the action
(e.g. query string parameters or article variables).
* `session:` option with a hash of session variables to pass along with the request.
* `session`: option with a hash of session variables to pass along with the request.
* `flash:` option with a hash of flash values.
* `flash`: option with a hash of flash values.
All the keyword arguments are optional.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册