Nav composer is a quite simple gem, wich supports an easy interface to define simple, flat navigations.
Add this line to your application's Gemfile:
gem 'nav-composer', :git => 'git://gist.github.com/2051071.git'
And then execute:
$ bundle
First you have to define navigation groups which are available in your application. The navigation groups are uniq and you can use them to define navigation sections within your application.
NavComposer::Base.define_group('crm')
Then you can define different navigation items within your application.
NavComposer::Base.add('crm', 'orders', orders_path)
The navigation structure you can then get from the gem.
NavComposer::Base.add('crm', 'orders', root_path)
Creating a navigation structure could look like this
<% NavComposer::Base.all.each do |g| %>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= t g[:gid], :scope => [:nav_composer, :groups] %> <b class="caret"></b></a>
<ul class="dropdown-menu">
<% g[:nodes].each do |n| %>
<li><%= link_to(t(n[:nid], :scope => [:nav_composer, :nodes]), n[:url]) %></li>
<% end %>
</ul>
</li>
<% end %>