gluttonberg/lib/gluttonberg/helpers/admin.rb
def tab(label, url)
        if request.env["REQUEST_PATH"].match(%r{^#{url}})
          tag(:li, link_to(label, url), :class => "current")
        else
          tag(:li, link_to(label, url))
        end
      end
# For adding a tab to the tab bar. It will automatically mark the current
# tab by examining the request path.
For adding a tab to the tab bar. It will automatically mark the current
tab by examining the request path.
For adding a tab to the tab bar . It will automatically mark the current tab by examining the request path .
def tab(label, url)
        if request.env["REQUEST_PATH"].match(%r{^#{url}})
          tag(:li, link_to(label, url), :class => "current")
        else
          tag(:li, link_to(label, url))
        end
      end
def tab ( label , url ) if request . env [ "REQUEST_PATH" ] . match ( %r{ ^ #{ url } } ) tag ( :li , link_to ( label , url ) , :class => "current" ) else tag ( :li , link_to ( label , url ) ) end end
For adding a tab to the tab bar.
For adding a tab to the tab bar .
label
url