I'm adding a layout to my app that I found at
http://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.

Reply via email to