To display associated models attributes, the doc says to handle them
using virtual columns:

in model

def some_attribute
    self.othermodel.some_attribute
end

and then just add :some_attribute to config.columns.

But, what if you want to display a lot of attributes? Your models will
look quite dirty, replicate a lot of code, plus the problems related
to that (renaming/adding/deleting attributes, etc)

Has somebody figured out a cleaner way of doing this?

perhaps something like
config.columns.add "Title" , :column => document.title
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to