Creating navigation bars with current section


Category:
Scripts
Ruby
Requirements:
Seller:
Price:
-
System:
Rating:
4.4
License:

Description - Creating navigation bars with current section



UPDATE: I have since packaged this functionality up as a Rails plugin - more information can be found at http://opensource.agileevolved.com*THE CODE BELOW HAS BEEN DISCOVERED TO HAVE PROBLEMS RUNNING IN PRODUCTION MODE - THIS HAS BEEN FIXED IN THE PLUGIN VERSION OF THIS Snippet. PLEASE SEE THE URL ABOVE*There are many ways of creating navigation bars using XHTML and CSS but the most common method is to Create an unordered list of links which are then formatted in a variety of ways using CSS. There are also many ways of highlighting the tab for the current PaGE, some using server-side Logic, some using CSS.This method enables you to create as many navigation lists as you like in your Rails views, giving each navigation list a unique ID which is then referenced using a simple macro in your controller to set the highlighted Link.



More in Ruby-Creating navigation bars with current section

Current Section Creating Navigation