title: Rails - select tag helper - display two column values
body: <p>In rails guides</p>
  
  <p><a href="http://guides.rubyonrails.org/form_helpers.html#option-tags-from-a-collection-of-arbitrary-objects" rel="nofollow">http://guides.rubyonrails.org/form_helpers.html#option-tags-from-a-collection-of-arbitrary-objects</a></p>
  
  <p>we can show a select box with city name as options using the below </p>
  
  <pre><code>&lt;%= options_from_collection_for_select(City.all, :id, :name) %&gt;
  </code></pre>
  
  <p>Now my select box has below options: </p>
  
  <ul>
  <li>Melbourne</li>
  <li>London</li>
  </ul>
  
  <p>I need to display options with city name,country in select box. How can I do this ?</p>
  
  <p>Like this</p>
  
  <ul>
  <li>Melbournee,Australia</li>
  <li>London, England</li>
  </ul>
  
  <p>have country_id in cities table.</p>