How can I get the current absolute URL in my Ruby on Rails view?
The request.request_uri only returns the relative URL
request.request_uri
(url_for(:only_path => false) == "/" )? root_url : url_for(:only_path => false)