OK, that was I bad idea because in creating the links I have to supply stuff specific to each model, so I'm just coding them by hand. I was just trying to be DRY.
On Mar 2, 9:03 pm, RichardOnRails <[email protected]> wrote: > I'm adding a layout to my app that I found > athttp://www.tutorialspoint.com/ruby-on-rails/rails-layouts.htm. > > They have a piece that ultimately feeds data into a sidebar: > class BookController < ApplicationController > layout 'standard' > def list > @books = Book.find(:all) > end > > I've got HomeController and I want to feed the names models I got, > e.g. Home, User, Vendor for now, more to come. So I want to generate > that list automatically. Then I'll eliminate any I don't want or > suppress them all for a Logon page, etc. > > Any ideas? > > Thanks in advance, > Richard -- 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.

