Sha256: b3c40d21ea08c1cc47ba39ff3a8bdadd71134351eed16bcfc2db78ecc19178cd

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

class FooController

   nav_for :su do |list|
    list.label :root

    list.item(:su, su_path)
    list.item(:provision, su_path(:action => :provision))
    list.item(:licenses, su_licenses_path)
    list.item(:producers, su_producers_path)
    list.item(:raw, su_path(:action => :raw))
    list.item(:super_users, su_super_users_path)
  end
 
end



... in a view

<%= nav_for :su %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_nav-0.0.4 README
rails_nav-0.0.3 README
rails_nav-0.0.2 README
rails_nav-0.0.1 README