On Viernes, 7 de Mayo de 2010 12:56:52 Iñaki Baz Castillo escribió:
> 2010/5/6 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> >> 2) The select box for "Clis" allows me to select any of the existing
> >> cli's in the "clis" table. Is not possible to write some text and do a
> >> search as in the first "username" field?
> >
> > Yes, you will have to set search_sql in clis column, and set :string
> > search_ui:
> >
> > config.columns[:clis].search_sql = 'clis.name'
> > config.columns[:clis].search_ui = :string
>
> Hi, it works, but the select box doesn't show some options as "Starts
> by", "Terminates in", "Contains", but just =, =>, <=, >, <, !=,
> "Between". ¿?

ActiveScaffold it was showing them when column was a text column, so it wasn't 
work for association columns. It can't autodetect when is used with an 
association, so I have added an option to enable it manually:
config.columns[:clis].options[:string_comparators] = true

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