Can using gsub work when using `query` as params?

*User.search(params[:query].gsub(/\s+/, ' | ')*

returns NoMethodError: undefined method `gsub' for nil:NilClass.

However if I switch it to *params[:search]* it works perfect with gsub. But 
in this situation I need gsub with query as params.

Anyone have any ideas?

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