forked from codeplant/simple-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
About
andi edited this page Sep 13, 2010
·
10 revisions
simple-navigation is a ruby library for creating navigations (with multiple levels) for your Ruby on Rails application.
Some of the key features include:
- define your navigation in a config file, not inside the views
- create as many navigation levels as you like
- render all your navigation levels as a nested tree or render each level separately.
- automatic highlighting of the active navigation item
simple-navigation basically works like this: You define your navigation with all its levels in the config-file (config/navigation.rb by default). In the view you render your configured navigation using the helper-method render_navigation
. By default the navigation is rendered as an Html list. You can style the list according to your needs using CSS (or Sass, of course).