title: Search functionality result should be in the same page in Rails
body: <p>I have view which contains a search form like below:</p>
  
  <pre><code> &lt;div&gt;
    &lt;%= form_tag :action =&gt; 'search' do %&gt;
     &lt;p&gt;
      &lt;%= text_field_tag :search, params[:search] %&gt;
      &lt;%= submit_tag "Search", :class =&gt; 'nil' %&gt;
     &lt;/p&gt;
    &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>whenever i am clicking search button it is calling a new view which i dont want.
  I want to be in the same page to do some action and display the result there only.
  Can any one direct me how to do this?</p>