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
Rails 4.0
you can use request.original_url, output will be as given below example
request.original_url
get "/articles?page=2" request.original_url # => "http://www.example.com/articles?page=2"