title: search not working in partial
body: <p>i have 2 search fields in 2 different views. they both search for establishments and are identical except for styling. </p>
  
  <p>one is in welcome/index.html.erb and works great. </p>
  
  <p>the other is in a partial called _nav.html.erb and is called from application.html.erb and does not work at all.</p>
  
  <p>do i need to pass something into the _nav partial for it to process the search form properly?</p>
  
  <p>welcome/index.html.erb</p>
  
  <pre><code>&lt;div&gt;
    &lt;%= form_tag(establishments_path, method: "get") do %&gt;
      &lt;div class="form-group"&gt;
        &lt;%= text_field_tag :search, params[:search], 
            placeholder: "Enter the name of an eatery", class: "form-control" %&gt;
        &lt;div class="actions"&gt;&lt;%= submit_tag "Search", :name =&gt; nil, class: "btn btn-primary" %&gt;&lt;/div&gt;
      &lt;/div&gt;
   &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>_nav.html.erb</p>
  
  <pre><code>&lt;form class="navbar-form navbar-left" role="search"&gt;
    &lt;%= form_tag(establishments_path, method: "get") do %&gt;
      &lt;div class="form-group"&gt;
        &lt;%= text_field_tag :search, params[:search], 
            placeholder: "Search", class: "form-control" %&gt;&lt;/div&gt;
        &lt;%= submit_tag "Search", :name =&gt; nil, class: "btn btn-primary" %&gt;
    &lt;% end %&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>application.html.erb</p>
  
  <pre><code>&lt;%= render 'layouts/nav' %&gt;
  </code></pre>
  
  <p>EstablishmentsController/index</p>
  
  <pre><code>def index
    if params[:search]
     @establishments = Establishment.search(params[:search].downcase).order("created_at ASC")
    else
      @establishments = Establishment.all.limit(25)
    end
  end
  </code></pre>