On Martes, 14 de Julio de 2009 15:55:25 Francesco De Rose escribió:
> On 14 Lug, 11:27, "Sergio Cambra .:: entreCables S.L. ::."
>
> <[email protected]> wrote:
> > 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.
>
> Are those methods added to the model or to the controller? I am not
> able to call them...

They are added to the controller if you use active_scaffold in it. do_search is 
set as a before_filter

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

Reply via email to