1 2 3 4
def tab(name, options = {}) if name == controller.controller_name.humanize || root_of_path.humanize == name content_tag :li, link_to("<span>#{name}</span>", options), :class => "active" ...
Ruby How to DRY this up
This is for a tabbed naviga...
Is there a better way?