title: how to define default selected value in select form page
body: <p>I  have an index.rhtml with this code</p>
  
  <pre><code>&lt;select id="subtable" name="subtable" size="20" style="width: 400px"&gt;
        &lt;% for haus in @hauses %&gt; 
             &lt;option selected value="&lt;%= haus.id %&gt;"&gt;&lt;%= haus.timebuild%&gt;&lt;/option&gt;
         &lt;% end %&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>It will show me a list of drop down files in a select box. However, everytime I refresh the page, the default selected value is always the last of the list (the bottom one). How can I make the default selected value to be the 1st one (the top one of the list), and not the last one? </p>
  
  <p>Thank you</p>