I think this is a fairly easy question done several times in several
languages, but on a traditional ‘tab’ based navigation webpage, what’s
the best way to handle the active state?
I am using this in my view:
<% for category in @categories %>
<% if the condition is met to make this the active tab %>
<% else %>
<% end %>
<% end %>
@categories are all user defined in the database. Is the best way to
handle this by setting up a session variable that tracks it?