Retrieving whole URL in rails

I was wondering if there is a method (or a way in any sense) to gather
the whole URL (the current one, the url in which a hypothetical user
is seeing in the moment), with all the detail (with all the
http://,subdomains,
etc) not only the relative path…

Can anyone help me with this?

Thank you.

request.url

See
http://api.rubyonrails.org/classes/ActionController/AbstractRequest.html#M000804