title: Rails: Form Select From Array/List Instance Variable
body: <p>I have a rails app where in a form, I have a form select (drop down list). 
  For example the user can select from 1,2,3,4,5</p>
  
  <p>Say for example I had these values stored in an array as an instance variable like:</p>
  
  <blockquote>
    <p>@formlist = [1,2,3,4,5]</p>
  </blockquote>
  
  <p>How can I simply put the array into the form select helper rather than listing each item separately. At the moment my code is:</p>
  
  <blockquote>
  <pre><code>&lt;tr&gt;
    &lt;th&gt;&lt;%= f.label(:heat_level, "Heat Level") %&gt;&lt;/th&gt;
    &lt;td&gt;&lt;%= f.select(:heat_level,{ 1 =&gt; "1", 2 =&gt; "2", 3 =&gt; "3", 4 =&gt; "4", 5 =&gt; "5"}) %&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  </blockquote>