2010/9/17 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: >> 1) When displaying "clients" list, for each client just its total >> number of "numbers" to be computed, no more. > > set includes to nil for numbers column. You will a get a numbers query for > each row. If associated_limit is 0, only count query will be issued. You could > use cache_count and you should get rid of count queries (I think so, I'm not > sure if I got it).
Great. >> 2) When I click in a "Numbers" column then I would see the typical >> nested view of "client" associated "numbers". If it's possible, just >> some specific columns of "numbers" table should be loaded (those that >> the NumbersControllers shows in the "list" action"). >> > > Define custom_finder_options in numbers controller to return :select => > 'columns > list' Great. > That way could be improved, but it isn't needed because you can get it with AS > configuration. Great again :) Thanks. -- Iñaki Baz Castillo <[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.
