// is quite simple with the request object
<% page = request.request_uri %> page: <%= page %>
// or when different urls mean the same page
<% page = "/" + request.path_parameters['controller'] + "/" + request.path_parameters['action'] %> page: <%= page %>
better use request.path