Method: ActionDispatch::Http::URL#host
- Defined in:
- lib/action_dispatch/http/url.rb
#host ⇒ Object
Returns the host for this request, such as example.com.
34 35 36 |
# File 'lib/action_dispatch/http/url.rb', line 34 def host raw_host_with_port.sub(/:\d+$/, '') end |