Pergunta

I can't seem to find an answer to what should be simple. I'm using Serve, which runs on a WEBRick server. I'd like to be able to grab the current page's URL. How would I do that?

Foi útil?

Solução

Since Serve uses Rack under the hood, try this in a view:

<%= request.url %>
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top