title: Get data from form params
body: <p>I'm new for rails and ruby. I try to make a simple project and have this problem. I have a view with some text fields on it, when I press submit button, in my controller I need the values from this fields as strings, I try this way <code>params[:field1]</code>, but the value is in this format {"field1"=>"some_value"}, it's not a string and I have the problems with it. How can I solve it?</p>
  
  <p>UP: 
  view code </p>
  
  <pre><code>&lt;%= form_tag :action=&gt;:login_user do %&gt;
      &lt;div class="field"&gt;
          &lt;h2&gt;Login&lt;/h2&gt;
          &lt;%= text_field "field1", "field1" %&gt;
      &lt;/div&gt;
  
      &lt;div class="field"&gt;
          &lt;h2&gt;Password&lt;/h2&gt;
          &lt;%= password_field "field2", "field2" %&gt;
      &lt;/div&gt;
  
      &lt;div class="actions"&gt;
          &lt;%= submit_tag "Login" %&gt;
      &lt;/div&gt;
  
      &lt;% end %&gt;
  </code></pre>