On Martes, 14 de Septiembre de 2010 11:50:05 Iñaki Baz Castillo escribió: > 2010/9/14 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: > > Do you need to use ActiveScaffold for that virtual model? What actions do > > you need? > > Just "list". > > > You could add a new model, set table to accounts and in client_codes > > controller define custom_finder_options to set :select => > > 'distinct(client_code) as client_code' > > Very interesting :) > I'll try it. Thanks a lot.
When you get that, try to add an association with accounts to that virtual model, probably using :find_sql option. -- 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.
