Hi,
I know how to sort on child.parent.grandparent virtual columns
config.columns[virtual_field].includes = {:parent => :grandparent}
config.columns[:customer_name].includes = {:site => :customer}
config.columns[:customer_name].sort_by :sql => 'customers.name'
can anyone think of an easy way to sort on a greatgrandparent?
child.parent.grandparent.greatgrandparent
JB
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---