instance method query

Ruby on Rails edge

Since edge

Signature

query(action, **args)

Simulate a QUERY request with the given parameters and set/volley the response. Params are sent as the request body, per RFC 10008, with a default Content-Type of application/x-www-form-urlencoded (RFC 10008 requires QUERY requests to declare one) — pass as: :json to send a JSON body instead. See get for more details.

Parameters

action req
args keyrest
Source
# File actionpack/lib/action_controller/test_case.rb, line 479
      def query(action, **args)
        process(action, method: "QUERY", **args)
      end

Defined in actionpack/lib/action_controller/test_case.rb line 479 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::TestCase::Behavior

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close