On Lunes, 18 de Enero de 2010 14:27:03 pjmorce escribió: > Hello > > In my rails application I use activescaffold with success with the > list and view methods. > For my list method I have configured the "per_page" parameter for > paginate the results. > > I have written a page with fields that can be filled by the user which > calls a function to do a custom search. This function executes a query > and renders a partial page with all the records found. The problem is > that the result are not paginated. > I would like to have them presented with X records per page. How can I > do this? (I'm am using a partial...) > > Thanks > > regards
Are you using ActiveScaffold to show the search results? You can use field_search instead of search action in ActiveScaffold and you can customize fields to search and UI for each field. You can customize how to build conditions for each field too. If you don't use ActiveScaffold, then you should ask in a more generic rails users list instead of this one. Anyway you can use a plugin like will_paginate to build paginated queries, or build it by yourself using :offset and :limit options. -- 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.
