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
You can use the ruby method:
:root_url
which will get the full path with base url:
localhost:3000/bla