On Viernes, 29 de Enero de 2010 16:01:55 DW escribió:
> The column is an association, the active scaffold is of a database of
> projects, and the departments column is the one which I want to sort.
> Each project has a specific department, and departments are a table of
> their own with a name and associated system unit.

Try setting the sort_by :sql for the association column:
config.columns[:departments].sort_by :sql => 'departments.name'

If it doesn't work post here your controller code

>
> I'm using ruby 1.8.6 with rails 1.2.3, the active_scaffold is a much
> older one, but I see no way to check the version? (Have not touched
> this app for a very long time).

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
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