Can't believe I didn't think to use  `to_s` since I did that with other 
parts in my app!

With that said it is not accomplishing what I set out to do (I never 
establish my reasoning in the original post).

Using *gsub(/\s+/, ' | ') *will allow me to string keywords together. I 
know this because originally my coded appeared like this:

@users = User.search(params[:search].gsub(/\s+/, ' | ')

But now with further developing the app I am adding more search 
capabilities so that the website is more user friendly. I added preselect 
search options which uses *@users = User.search(params[:query]* . I am not 
able to use both at the same time, which is why I was trying to add gsub to 
my query params to see if that would do the trick. That way users can opt 
to do manual search or select options to search. I guess in lamest terms, 
simple search and advanced search. I have simple search working separately. 
And when I replace the code with advanced search, then the advanced search 
is working properly. I just can't manage to get them both to function at 
the same time under the index action.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to