I\'m not understanding how Twitter Bootstrap does active links for the navigation. If I have a regular navigation like this (with ruby on rails linking):
<
This deals with BOTH nav, and sub nav list elements. You can pass either an array a single path and will deal with both.
# Active page method def ap(p:);'active' if p.class == Array ? p.map{|m| current_page? m}.any? : (current_page? p) end
Home Account Users Users Add user