Rails how to request url except url params?
request
is an ActionDispatch::Request and that subclasses Rack::Request. Rack::Request has a path
method that might interest you:
<%= request.path %>
If your request.url
is http://example.com/where/is?pancakes=house%3F
then request.path
should be /where/is
.