public Method

AbstractRequest.query_string

Return the query string, accounting for server idiosyncracies.

Source Code

# File action_controller/request.rb, line 220
def query_string
  if uri = @env['REQUEST_URI']
    uri.split('?', 2)[1] || ''
  else
    @env['QUERY_STRING'] || ''
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.