Error fixes related to use of ransack and its conflict with Thinking Sphinx