find out the current url / uri in *.rhtml file
// is quite simple with the request object
1 2 <% page = request.request_uri %> 3 page: <%= page %>
// but then different urls mean the same page
// (../admin = ../admin/ = ../admin/index = ..admin/index/)
// and maybe the id is unwanted too (../admin/show/8)
// so below is an alternative with control on which parameter is used
1 2 <% page = "/" + request.path_parameters['controller'] + "/" + request.path_parameters['action'] %> 3 page: <%= page %>