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
To get the request URL without any query parameters.
def current_url_without_parameters request.base_url + request.path end