class

ActionController::AbstractRequest

v2.2.1 - Show latest stable - Superclass: Object

CgiRequest and TestRequest provide concrete implementations.

Constants

EOL = "\\015\\012"

HTTP_METHODS = %w(get head put post delete options)

HTTP_METHOD_LOOKUP = HTTP_METHODS.inject({}) { |h, m| h[m] = h[m.upcase] = m.to_sym;

MULTIPART_BOUNDARY = %r|\\Amultipart/form-data.*boundary=\\"?([^\\";,]+)\\"?|n

TRUSTED_PROXIES = /^127\\.0\\.0\\.1$|^(10|172\\.(1[6-9]|2[0-9]|30|31)|192\\.168)\\./i

Attributes

[R]env

Files

  • actionpack/lib/action_controller/request.rb

1Note

Different Method for Subdomains

cracell ยท Jul 30, 20086 thanks

@james

You can also access the subdomain via the subdomains array.

request.subdomains.first