getting all controllers for application

Craig Beck
Tue, 10 May 2005 22:21:24 -0000

The first thing I do when getting a scaffolded application up is to
add a unifying application.rhtml layout that has a navbar that lists
all the controllers in the project. This way I can jump back and
forth tweaking the controllers without going to the address bar. I
just use this method in the early stages to get things rolling,
before I get more into tweaking the UI the way it should be.

The question is there any way of doing this automatically (kinda like
AR extracts columns and db schema) from the application so that I
could modify the application.rhtml once with something like <%=
get_all_controllers_as_links %> and have it automatically keep up
with newly added controllers etc?





--
Craig Beck
http://luckybonza.com
AIM: Kreiggers