I think you can use the SearchLogic (look at Github) to do this. AS is not a better plugin to use only search action.
2009/7/14 Sergio Cambra .:: entreCables S.L. ::. <[email protected]> > > On Martes, 14 de Julio de 2009 10:34:39 Francesco De Rose escribió: > > Hello, > > > > I would like to develop a custom controller that interacts with the > > search features provided by activescaffold. > > > > In other words, I want to pass it a search string, and obtain an array > > of model instances that satisfy the query. > > What is the activescaffold method that I should be calling? I tried to > > look at the code but unfortunately I cannot figure it out. > > ActiveScaffold does the search with two methods: > - do_search (in lib/active_scaffold/actions/search.rb): > which sets the conditions and joins, it reads the search string form > params[:search], it searches in active_scaffold_config.search.columns. > - do_list (in lib/active_scaffold/actions/list.rb) which does the query. > > > > > Thank you! > > > > Francesco > > > > > -- > Sergio Cambra .:: entreCables S.L. ::. > Mariana Pineda 23, 50.018 Zaragoza > T) 902 021 404 F) 976 52 98 07 E) [email protected] > > > > > -- Regards, Gabriel Sobrinho E-mail: [email protected] Phone: +55 31 8775 8378 Don't print this e-mail. The nature is thankful and your money also. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
