Hi All, Is it necessary to have a separate controller for each sub-menu and sub-sub-menus. I want the nav buttons of the main section and the sub-menu point to each other, is this possible with rails partials ? Is there any tutorial for sub-menus ? Thanks & Warm Regards, -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2011/2/17 Bhasker Harihara <harihara.bhasker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Le 17 février 2011 18:04:42 UTC+2, edmond.kachale < edmond.kachale-qPoFbzSWEfuuL8s4vL5bMA@public.gmane.org> a écrit :> > 2011/2/17 Bhasker Harihara <harihara.bhasker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> > > 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!! > >You may also wish to have a look at this one: http://www.killswitchcollective.com/articles/13_best_practices_for_rails_partials I haven''t scrutinized it, but I just bumped into it online. --- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 17, 11:01 am, Bhasker Harihara <harihara.bhas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi All, > > Is it necessary to have a separate controller for each sub-menu and > sub-sub-menus. > > I want the nav buttons of the main section and the sub-menu point to each > other, is this possible with rails partials ? > > Is there any tutorial for sub-menus ?The first place I go to for tips/tricks and tuts is Railscasts. Check out: http://railscasts.com/episodes/162-tree-based-navigation It may not be everything you want/need, but it may give a few pointers. I''m going to give it a watch tonight and add it to my own ref library. Paul> > Thanks & Warm Regards,-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Paul, I shall def. have a look at it soon, currenlty my Centos has problem and not able to view any mov files. Warm Regards, On Fri, Feb 18, 2011 at 8:34 PM, paul h <paul-nqL44GTounsJ3nxcUk3PyQ@public.gmane.org> wrote:> > > On Feb 17, 11:01 am, Bhasker Harihara <harihara.bhas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Hi All, > > > > Is it necessary to have a separate controller for each sub-menu and > > sub-sub-menus. > > > > I want the nav buttons of the main section and the sub-menu point to each > > other, is this possible with rails partials ? > > > > Is there any tutorial for sub-menus ? > > The first place I go to for tips/tricks and tuts is Railscasts. Check > out: > http://railscasts.com/episodes/162-tree-based-navigation > > It may not be everything you want/need, but it may give a few > pointers. I''m going to give it a watch tonight and add it to my own > ref library. > > Paul > > > > Thanks & Warm Regards, > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.