Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Acts As Sub Navigatable

Acts As Sub Navigatable

ActsAsSubNavigatable is a really simple Rails plugin to realize sub navigations.

== just insert something like <%= tab “News”, :controller => ’/articles’, :action => ‘index’ %> to your views…

or 
  &lt;%= tab "News", :controller => '/articles', :action => 'index', :subnavi => true %>
if you want to have a sub navigation.
The sub navigations partials are stored in app/views/shared/navi with the naming convention
  _(controller|namespace)_sub.html.erb
e.g.
  _videos_sub.html.erb
where ´videos´ is a controller or
  _tv_sub.html.erb
where ´tv´ is a namespace.
Notice this plugin is extracted from ´mtvonrails´ and currently not that generic, this will change in future. Credits Denis Laukdrej, the guy who did the HTML and CSS Andreas Roedl, who did the raw navigation helper without sub navigation support

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'