instance method query_string

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

query_string()

Returns the query string, accounting for server idiosyncrasies.

Source
# File actionpack/lib/action_controller/request.rb, line 336
    def query_string
      @env['QUERY_STRING'].present? ? @env['QUERY_STRING'] : (@env['REQUEST_URI'].split('?', 2)[1] || '')
    end

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

Defined in ActionController::Request

Type at least 2 characters to search.

↑↓ navigate · open · esc close