class

ActionController::AbstractRequest

rails latest stable - Superclass: Object

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

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