title: Creating a search input with Ruby on Rails
body: <p>I am attempting to create a search form, the search is performed on third party site so there is no model just a controller.  I have it set up as follows</p>
  
  <p><code>views/items/index.html.haml</code> :</p>
  
  <pre><code>= search_field :search, :search_input
  = submit_tag 'Search'
  </code></pre>
  
  <p><code>views/items/search.html.haml</code>:</p>
  
  <pre><code>-@items.each do |item|
    %h1= item.title
  </code></pre>
  
  <p><code>controllers/items_controller.rb</code>:</p>
  
  <pre><code>def index
     #I am unsure of what to put in here?  I think
     #I need something wich sends @search_input to my search method
  end
  
  def search
     @items = some_third_party_search_method_i_wrote{ params[:search_input]}
  end
  </code></pre>
  
  <p>How does one properly use the <code>params</code> object in rails?  I don't understand how to get from the <code>index</code> page containing the search form to the <code>search</code> page containing the results of the search input?   </p>