title: options_from_collection_for_select in rails 4
body: <p>I'm building a simple form to let users of my rails 4 site message each other.</p>
  
  <p>In the form, the user can select the recipient of the message with a select list of all the users in the system (it's a small user base).</p>
  
  <p>Right now the form control looks like this, and works fine:</p>
  
  <pre><code>&lt;%= f.select(:to_id, options_from_collection_for_select(User.all, :id, :first_name), {}, {:class =&gt; 'form-control'}) %&gt;
  </code></pre>
  
  <p>However, there's a "nickname" field in the <code>Users</code> table as well-- I'd like to have the form show the nickname (if it exists) as well as the user's first / last name-- so the value of the select would be:</p>
  
  <pre><code>&lt;option&gt;Snoop Dogg - Calvin Broadus&lt;/option&gt;
  </code></pre>
  
  <p>rather than just </p>
  
  <pre><code>&lt;option&gt;Calvin&lt;/option&gt;
  </code></pre>
  
  <p>Is this possible?</p>