title: Rails 3 dropdown select boxes?
body: <p>I am working on a simple intranet application made with Rails 3.1.</p>
  
  <p>I have a model for links which has the following fields:</p>
  
  <pre><code>name:string
  url:string
  colour:string
  </code></pre>
  
  <p>I have put the colour attribute into a class in the view, like so:</p>
  
  <pre><code>&lt;a href="linkaddress" class="&lt;%= link.colour %&gt;"&gt;Link Name&lt;/a&gt;
  </code></pre>
  
  <p>At the moment in the new link form I just have a simple form input in which the user can type anything and it will become the href class as expected.</p>
  
  <p>What I would like to do is create a dropdown list of preset options, these options are simply red, green and blue (as an example). As this seems fairly simple, I don't think there is any need for a helper.</p>
  
  <p>I have read a few other questions and answers on SO and they seem to show examples where you have the name followed by an ID number. I just want to have the code below:</p>
  
  <pre><code>&lt;select name="colour"&gt;
   &lt;option value="red"&gt;Red&lt;/option&gt;
   &lt;option value="green"&gt;Green&lt;/option&gt;
   &lt;option value="blue"&gt;Blue&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I'm sure this is simple but I can't get my head around it. I've read the Rails API info and the select_for_tag has confused me!</p>