Anyway this: config.columns[:last_statecustomer_name].includes = [:customer_programs => :statecustomer] config.columns[:last_statecustomer_name].sort_by :sql => 'customer_programs.date DESC'
... def last_statecustomer_name customer_programs.first.try(:statecustomer).try(:name) end not works. It sorts by id. 2010/10/6 Andrey Voronkov <[email protected]>: > Please show me whole string of code, where I should use sort_by(&:date) > > 2010/10/6 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: >> sort_by(&:date) > -- 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.
