Hi,
I have an index.rhtml with this code
<select id="subtable" name="subtable" size="20" style="width: 400px">
<% for haus in @hauses %>
<option selected value="<%= haus.id %>"><%= haus.timebuild%></option>
<% end %>
</select>
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?
Thank you