title: adding values to a select box from a controller function (Ruby on Rails)
body: <p>I have a Rails web application with a select box:</p>
  
  <pre><code>&lt;%= select_tag :foo %&gt;
  </code></pre>
  
  <p>I'm looking to write a function in the controller which would populate this select box with some values. What code would I need to write in order to do that?</p>
  
  <p>It's fine if the values are hard coded into the function. </p>
  
  <pre><code>def populate
    # what goes here?
  end
  </code></pre>