title: sunspot searching
body: <p>I know I had this search function working only a moment ago but have been redoing my search and navbar with bootstrap and now it looks good but the search function is not working!!  I think it's something in the index action?  All it does is, well, nothing.  Perhaps it's not submitting the form? - how can I check this?</p>
  
  <p><strong>VIEWS</strong>
  *guidelines_controller.rb*</p>
  
  <pre><code> def index
      @guidelines = Guideline.order(:title).all
  
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @guidelines }
      end
      @search = Sunspot.search(Guideline) do  
      fulltext params[:search]  
    end  
    @guidelines = @search.results 
    end
  </code></pre>
  
  <p><em>layouts/application.html.erb</em></p>
  
  <pre><code>&lt;%= form_tag guidelines_path, :class =&gt; 'navbar-search', :method =&gt; :get do %&gt;  
  
      &lt;%= text_field_tag :search, params[:search], :class =&gt; 'search-query', :placeholder=&gt;"Search" %&gt; 
  </code></pre>
  
  <p><strong>MODELS</strong>
  <em>guideline.rb</em></p>
  
  <pre><code>searchable do
      text :title, :default_boost =&gt; 2
      text :subtitle
    end
  </code></pre>