instance method query

Ruby on Rails edge

Since edge

Signature

query(path, **args)

Performs a QUERY request with the given parameters. 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 or an explicit CONTENT_TYPE header to override. See ActionDispatch::Integration::Session#process for more details.

Parameters

path req
args keyrest
Source
# File actionpack/lib/action_dispatch/testing/integration.rb, line 64
      def query(path, **args)
        process(:query, path, **args)
      end

Defined in actionpack/lib/action_dispatch/testing/integration.rb line 64 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Integration::RequestHelpers

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