Dear all,
I need to filter string case insensitive (used postgresql)
DB[:table].filter(:field.like('str%')) do filter case sensitively
I find grep from doc, but when I tried
DB[:table].grep(:field, '%'+text+'%', :case_insensitive =>
true).order(:field)
it gives me
`grep': wrong number of arguments (3 for 2)
Any suggestion how to do it right?
Thanks,
Regards
Hendra
--
Suka linux?
Kunjungi blog saya http://penguinroad.blogspot.com
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" 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/sequel-talk?hl=en.