title: Rails: Collection select in simple form
body: <p>I am using simple form gem and I am wondering how do you do a collection_select ? I know you can do a select, but how do you get the values from a collection?</p>
  
  <p>So, for example, how would you do this in a simple form:</p>
  
  <pre><code>collection_select(:post, :author_id, Author.all, :id, :name_with_initial, :prompt =&gt; true)
  </code></pre>
  
  <p>Thanks</p>