6 lines
105 B
Ruby
6 lines
105 B
Ruby
module StyleHelper
|
|
def active_page(path)
|
|
request.path.starts_with?(path) ? "active" : ""
|
|
end
|
|
end
|