# Nested tanavs based on controller/actions

**URL:** <https://www.ruby-forum.com/t/nested-tanavs-based-on-controller-actions/107291>\
**Category:** Rails\
**Created:** [June 20, 2007, 7:03am UTC](https://www.ruby-forum.com/t/nested-tanavs-based-on-controller-actions/107291 "2007-06-20T07:03:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezhuthukaaran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/50afbb/32.png) [@ezhuthukaaran](https://www.ruby-forum.com/u/ezhuthukaaran)\
**Post date:** [June 20, 2007, 7:03am UTC](https://www.ruby-forum.com/t/nested-tanavs-based-on-controller-actions/107291/1 "2007-06-20T07:03:28Z")

</div>

How to nest tabnavs such that the first row has the all the  
controllers and the second row has all the methods/actions of the  
selected controller.  
Each first row tab element  
‘named’ =\> should be equal to @controller.pluralize (e.g. if Post  
is the controller then ‘named’ should be ‘Posts’)  
‘link\_to’ =\> /@controller/list (e.g. if Post is the controller  
then ‘named’ should be ‘/posts/list’)  
Second row should be dynamic based on the tab selected in the first  
row  
and ‘named’ should have the method/action names - may be with  
an :exclude or :except or :include option

Any one can help me with the appropriate Helper/Model/Controller/  
Partial/view please?
