title: Basic Setup for Multisearch in pg_search and Rails 3.2.3
body: <p>This is my very first question here, after many months of lurking and absorbing.  So I hope I do this correctly.</p>
  
  <p>I have been trying to get the multisearch functionality of pg_search working in my Rails 3.2.3 app after learning about the pg_search_scope functionality from <a href="http://railscasts.com/episodes/343-full-text-search-in-postgresql" rel="nofollow">this Railscast</a>.  I believe that the pg_search documentation assumes that the reader has a better working knowledge of Rails than I do.  I just haven't been able to make the jump from the resources I've found to getting a working app using multisearch.  Any help would be much appreciated.  Here's my setup:</p>
  
  <p><strong>config/initializers/pg_search.rb</strong></p>
  
  <pre><code>PgSearch.multisearch_options = {
    :using =&gt; {
      :tsearch =&gt; {
        :dictionary =&gt; "english"
      },
      :trigram =&gt; {}
    },
    :ignoring =&gt; :accents
  }
  </code></pre>
  
  <p><strong>Search Form in the View</strong></p>
  
  <pre><code>&lt;%= form_tag articles_path, method: :get do %&gt;
      &lt;%= text_field_tag :query, params[:query], :class =&gt; "search-box" %&gt;
      &lt;%= submit_tag "Search This Site", name: nil, :class =&gt; "btn btn-search" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><strong>article.rb</strong></p>
  
  <pre><code>include PgSearch
  multisearchable :against =&gt; [:title, :content]
  
  def self.search(query)
    if query.present?
      search(query)
    else
      scoped
    end
  end
  </code></pre>
  
  <p><strong>articles_controller.rb</strong></p>
  
  <pre><code>def index
    @articles = PgSearch.multisearch(params[:query])
  
    respond_to do |format|
      format.html # index.html.erb
      format.json { render json: @articles }
    end
  end
  </code></pre>
  
  <p>I get no search results when searching for known terms.  What am I doing wrong?</p>