title: How to pass multiple params in a text_field_tag
body: <p>Ok, so i am trying to get the value from one textfield and pass it to two different methods in a viewController when the user clicks on either the "Add" button or "search" button (so if user presses search button it geoes to search method and if user clicks add button it goes to add method), so far this code does the trick but i dont like that there has to be two text fields, should i maybe use button_to's? and if so how would that look? Thx      </p>
  
  <pre><code>  &lt;p&gt;&lt;%= form_tag :controller =&gt; 'projects', :action =&gt; 'search', :method =&gt; 'get' do %&gt;
  
    &lt;%= text_field_tag :search, params[:search] %&gt;
    &lt;%= submit_tag "search" %&gt;
    &lt;%= link_to_function "Clear", "$('search_field').clear()" %&gt;
    &lt;% end %&gt;
    &lt;/p&gt;
  
    &lt;p&gt;&lt;%= form_tag :controller =&gt; 'projects', :action =&gt; 'add_project_to_user' do %&gt;
    &lt;%= text_field_tag :text, params[:text] %&gt;
    &lt;%= submit_tag "Add" %&gt;
    &lt;%= link_to_function "Clear", "$('search_field').clear()" %&gt;
    &lt;% end %&gt;
    &lt;/p&gt;
  </code></pre>