2011/2/17 Bhasker Harihara <[email protected]>

> Hi All,
>
> Is it necessary to have a separate controller for each sub-menu and
> sub-sub-menus.
>
No, it' s not necessary . The issue of menus, sub-menu etc are graphical
layout that can be customized by CSS and HTML. suppose we have the following
menu:
--------------------
|   Items |
-------------------
    |  New Item
    ---------------
   |  List          |
    ----------------------------------
                      |  By catergory |
                      --------------------
                      |  By name      |
                      --------------------

The corresponding actions can be in one controller say, items_controller.rb.



> I want the nav buttons of the main section and the sub-menu point to each
> other, is this possible with rails partials ?
>

A partial in nothing but a device for breaking the rendering process into
more manageable chunk. When you look at partials look at them as
super-methods (super-functions) that can be used and reused in several
places. So the issue of partials has somehow nothing to do with your
navigation buttons.



Is there any tutorial for sub-menus ?
>

I haven't searched for one, but that is a wake up call for me to create one
for rails newbies!!

Cheers,


---
Edmond
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) |
Malawi

Cell:  +265 999 465 137 | +265 881 234 717

*An old dog does not hunt because of speed, but his endurance of the heart.*
*
*

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to