I am using meta_search gem on my rails project. The database is an Oracle database and “like” is case sensitive. Does somebody know how I can create a new condition, or something, for get queries like this:
UPPER(NAME) LIKE UPPER('User Firstname')
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
meta_search method class – first two code samples. Just instead of
:backwards_namerewrite it to be:incasesensitive_nameor whatever you want and add such text field to your search form.UPPER()is built into Oracle AFAIR, so scope may look like this:Hope it helps.