**request.env[‘HTTP_HOST’] ** will give you => fudge.wow.comrequest.env[SERVER_PROTOCOL] will give you server protocol i.e. => HTTPFor more details refer to :
I'm not 100% sure, but I think what you want is request.path or request.url
Also try request.relative_url_root. But use with caution, because all the URIs inside your application should be subject to routes.rb. You should expect to change that, and everything will work with the new routes.
If you do try:
raise request.inspect
It will tell you everything thats inside request.
Sometimes .inspect is so obliging, and sometimes not! For a different view, use raise public_methods.sort.inspect