title: Thinking Sphinx not generating results
body: <p>Generating  error:</p>
  
  <blockquote>
    <p>undefined method `inject' for nil:NilClass</p>
  </blockquote>
  
  <p>Notwithstanding the discussion at:
  <a href="https://github.com/pat/thinking-sphinx/issues/408#issuecomment-12593562" rel="nofollow">https://github.com/pat/thinking-sphinx/issues/408#issuecomment-12593562</a>
  it appears that I do have mySQL and sphinx properly installed for my postgre-based application</p>
  
  <blockquote>
    <p>MacBook-Pro-di-jerdvo:saim jerdvo$ brew install sphinx --mysql<br>
    Error: sphinx-2.0.3 already installed<br> MacBook-Pro-di-jerdvo:saim
    jerdvo$ brew install mysql<br> Error: mysql-5.5.20 already installed</p>
  </blockquote>
  
  <p>gemfile includes</p>
  
  <blockquote>
    <p>gem 'rails', '3.2.13'<br>
    gem 'pg', '0.14.1'<br>
    gem 'mysql2', '0.3.12b5'<br>
    gem 'thinking-sphinx', '3.0.3'</p>
  </blockquote>
  
  <p>search parameters are being captured</p>
  
  <blockquote>
    <p>{"utf8"=>"✓", "staticpage_search"=>{"terms"=>"Messina"}}</p>
  </blockquote>
  
  <p>search model is running code</p>
  
  <pre><code>  def search(options = {})
      extra_conditions = options.delete(:conditions) || {}
      order = options.delete(:order) || '@weight DESC'
      extra_with = options.delete(:with) || {}
  
      with = search_with.merge(extra_with)
      conditions = search_conditions.merge(extra_conditions)
  
      base_class.search sanitized_terms, :conditions =&gt; conditions, :with =&gt; with, :page =&gt; page, :per_page =&gt; per_page, :sort_mode =&gt; :extended, :order =&gt; order, :retry_stale =&gt; true, :match_mode =&gt; :extended
    end
  
    def sanitized_terms
      @terms ||= ""
      sanitize(@terms)
    end
  
    def sanitize(s)
      if s.respond_to? :gsub
        s.gsub("/", "\\/")
      else
        s
      end
    end
  </code></pre>