title: Form data processing in Ruby on Rails
body: <p>I am new to Rails and now trying to write a small project in Rails. As part of this project I want to process a form Data(Password). My form is </p>
  
  <pre><code>&lt;form name="input" action="http://0.0.0.0:3000/submit/" method="get"&gt;
  
  Password: &lt;input type="text" name="password" /&gt;
  
  &lt;input type="submit" value="Login" /&gt;
  </code></pre>
  
  <p>If the entered password is correct I want to display another html page, the original password is not stored in Database, means just want to compare against a character string. I created a controller and view by using 'rails generate controller project'. I think the code for password match should be written in the file 'project_controller.rb' in 'app/controllers' directory. But how to write code for password match and how to map the url in 'routes.rb' file ? If 'get' method changed to 'post' what are the necessary changes required ?  </p>