Method: ActionDispatch::Http::URL#url
- Defined in:
- actionpack/lib/action_dispatch/http/url.rb
#url ⇒ Object
Returns the complete URL used for this request.
req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com'
req.url # => "http://example.com"
191 192 193 |
# File 'actionpack/lib/action_dispatch/http/url.rb', line 191 def url protocol + host_with_port + fullpath end |