Is it possible to find out which controllers are available in an application programmatically and build a navigation system using this information? If this is something that is possible within Rails, where should I start looking to get started on this? Essentially I have an administration area that I need to build some navigation for. Typically I''d do this using an xml document and setting some page variables that basically says "I''m Page 1, Section B" which would then properly handle which navigational items should show up and which should be highlighted. I''m hoping there is a more "Rails" like way to do what I want. Any help is appreciated. Thanks in advance. Kyle Heon kheon-Wuw85uim5zDR7s880joybQ@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
This link might help: http://wiki.rubyonrails.com/rails/show/HowToMakeSitemapWithIntrospection Cheers Nev ________________________________ From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Kyle Heon Sent: Tuesday, 28 June 2005 10:20 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] Automatic navigation between controllers Is it possible to find out which controllers are available in an application programmatically and build a navigation system using this information? If this is something that is possible within Rails, where should I start looking to get started on this? Essentially I have an administration area that I need to build some navigation for. Typically I''d do this using an xml document and setting some page variables that basically says "I''m Page 1, Section B" which would then properly handle which navigational items should show up and which should be highlighted. I''m hoping there is a more "Rails" like way to do what I want. Any help is appreciated. Thanks in advance. Kyle Heon kheon-Wuw85uim5zDR7s880joybQ@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Kyle On 6/27/05, Kyle Heon <kheon-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:> Is it possible to find out which controllers are available in an application > programmatically and build a navigation system using this information? > > If this is something that is possible within Rails, where should I start > looking to get started on this?Check out the previous thread entitled "[ANN] Structure graphs" in which Florian Gross shows off his dynamic graph creation script (http://flgr.0x42.net/structure/structure.erb). Much of this script can be used to create a dynamic sitemap. Josh