title: Handling Parameters in Rails
body: <p>How to validate parameter passed to the controller from view. The following is my view file.</p>
  
  <p>index.html.erb:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
      &lt;center&gt; &lt;h1&gt; Login form &lt;/h1&gt; &lt;/center&gt;
      &lt;form action='/login/auth' method='GET'&gt;
          Name: &lt;input type="text" name="username" width=20&gt;
          Password: &lt;input type="password" name="password" width=20&gt;
          &lt;input type="submit" value="login"&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The above is the view file rendered in client side when the client calls '/login' controller. So, once the value is filled and
  press the submit button, the datas are passed to '/login/auth' action. With in auth method how to handle the data which is passed from
  client side. My controller file is,</p>
  
  <p>login_controller.rb:</p>
  
  <pre><code>ass LoginController &lt; ApplicationController
    def auth
  
    end
  end
  </code></pre>