Hiya,

Whats the best way around the error Can't mix :method- and :sql-based
sorting

active_scaffold :category do |config|
  config.list.sorting = [{ :client => :asc}, {:number => :asc}]
  config.columns[:client].sort_by :sql => "clients.name"
end

I was thinking to add field called client_name to category and sort on
that but its not what i want really.  I like the way the client column
has an active link so the clients details can be vired, edited,deleted
within the category grid.

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

Reply via email to