On Jueves, 24 de Septiembre de 2009 22:10:52 G. Sobrinho escribió:
> Hello,
>
> I'm trying to use search to filter associations. I have Seller which
> has_many Announces.
>
> If I access the announces AS page and try to search 'webmotors' (it is a
> seller in my database) this doesn't find anything. Well, I tried to swap to
> FieldSearch but the associations aren't showed on search.
>
>
> AS is missing this feature, I'm doing something wrong or what is happening?

Search is enabled by default only for real columns. You have to set search_sql 
for associations in order to ActiveScaffold knows which field of the 
association 
table use to search. You have examples in API: column
http://wiki.github.com/activescaffold/active_scaffold/api-column

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