search for: navbutton

Displaying 1 result from an estimated 1 matches for "navbutton".

Did you mean: nav_button
2005 Dec 07
1
Navigation
...ave this in my view: <% @nav_buttons.each do |nav_button| %> <li><a href="#" class="nav"><%=h nav_button.name %></a></li> <% end %> this in my controller def index shownav end def shownav @nav_buttons = NavButton.find(:all) end and I want to make it so that one of the class="nav" list items has an id="active" decided by a default variable for the homepage, which I will assign a value to as another section is clicked. I realize this is probably pretty micky mouse for most on this...