page info fix
This commit is contained in:
parent
6409809bdf
commit
d24915600a
|
@ -5,7 +5,7 @@ def link_to(title, url="#", params={})
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_classes(*additional)
|
def page_classes(*additional)
|
||||||
path = env["REQUEST_PATH"]
|
path = request.path_info
|
||||||
path << "index.html" if path.match(%r{/$})
|
path << "index.html" if path.match(%r{/$})
|
||||||
path.gsub!(%r{^/}, '')
|
path.gsub!(%r{^/}, '')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue