title: Ruby on Rails - Prompting user for password
body: <p>I'm trying to add some basic file-download functionality to my Rails application and have the <code>password_hash</code> and <code>password_salt</code> fields for my file model. I also have a function in which a download link to the file is generated, however I'm not totally sure (as I'm sort of reasonably new to Ruby and Rails) how I'd go about actually prompting the user for a password and checking this before proceeding with the file download.</p>
  
  <p>Any help would be appreciated.</p>