= private = protected
The exact documentation you were looking for could not be found. Here is the best guess.
host()
Returns the host for this request, such as example.com.
# File actionpack/lib/action_controller/request.rb, line 280 def host raw_host_with_port.sub(/:\d+$/, '') end