page info fix

This commit is contained in:
tdreyno 2009-08-11 15:39:20 -07:00
parent 6409809bdf
commit d24915600a

View file

@ -5,7 +5,7 @@ def link_to(title, url="#", params={})
end
def page_classes(*additional)
path = env["REQUEST_PATH"]
path = request.path_info
path << "index.html" if path.match(%r{/$})
path.gsub!(%r{^/}, '')