title: How to parse an uploaded txt file in Rails3
body: <p>I have a form which have a file input;</p>
  
  <pre><code>&lt;%form_tag '/dboss/newsbsresult' , :remote=&gt;true do %&gt;
      &lt;input type="file" id="examsendbutton" name="txtsbs"/&gt;&lt;br/&gt;
      &lt;input type="submit" value="Gonder"&gt;
  &lt;%end%&gt;
  </code></pre>
  
  <p>Here i want the user to select a txt file which i try to parse and use at server, but i cannot catch the uploaded file with this code,</p>
  
  <pre><code>def newsbsresult
          @u = params[:txtsbs] #Or params[:txtsbs].to_s
          p @u
  end
  </code></pre>
  
  <p>What is the true way of achieving this?</p>