On Miércoles, 7 de diciembre de 2011 14:21:48 SOREN CHRISTENSEN escribió:
> Hi,
> 
> I use live search in my AS powered controllers, but I need to be able to
> search a little more clever on associated columns.
> 
> I have successfully used the config.columns[<column_name>].search_sql to
> customize what is in the 'expression' portion of the query, but I also need
> to be able to customize what goes into the value portion of the query.
> 
> On the Wiki's page on Search-Overrides (the bottom paragraph) its described
> how one can construct the entire component of the search.
> I'm trying to use this to perform a search on a column that has an
> enumeration on in.
> 
> My controller now has this action defined:
> 
> def self.condition_for_page_column(column, value, like_pattern)
>   ["#{column.search_sql} IS ?", SCREEN_TYPES.index(value)]
> end
> 
> But the action is never called ­ Does this not work for Live searches or is
> something additional required to activate this ?
> 
> /S

It's only for field_search

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