title: Rails simple_form remember password input
body: <p>With rail's <code>simple_form</code> gem:</p>
  
  <p>If I have <code>= f.input :password, :required =&gt; true</code> then whenever I submit the form and it contains errors, my input for the password is gone on page reload. If I use <code>= f.input :password, :required =&gt; true, :as =&gt; :text</code> it all works like expected, so clearly there's a different handling for password fields.</p>
  
  <p>How to remember values for password fields?</p>
  
  <p>EDIT: some people don't seem to understand that I'm talking about redisplaying the same form with values previously entered. This question has NOTHING to do with database, in fact nothing is even saved in the database in that scenario. For the PHP people, this is the equivalent of <code>&lt;input name="pass" type="password" value="&lt;?= $_POST['pass']; ?&gt;"&gt;</code></p>