title: In RoR, how do I get the name/id of my object to render in my select menu instead of the object itself?
body: <p>I’m using Rails 4.2.3.  I have the following helper method for getting US states …</p>
  
  <pre><code>  def us_states
      us_country = Country.find_by_iso('US')
      State.where(country_id: us_country.id)
    end
  </code></pre>
  
  <p>Then in my view I have</p>
  
  <pre><code>&lt;%= addr.select :state, us_states.collect {|s| [ s.name, s.id ] }, {prompt: 'Select State'}, class: "selectField selectMenu form-control" %&gt;
  </code></pre>
  
  <p>However, what is being rendered in my view is</p>
  
  <pre><code>&lt;select name="my_object[address][state]" id="my_object_address_state"&gt;&lt;option value=""&gt;Select State&lt;/option&gt;
  &lt;option value="#&lt;State:0x007f9f562fe368&gt;"&gt;#&amp;lt;State:0x007f9f562fe368&amp;gt;&lt;/option&gt;
  …
  &lt;option value="#&lt;State:0x007f9f563124a8&gt;"&gt;#&amp;lt;State:0x007f9f563124a8&amp;gt;&lt;/option&gt;&lt;/select&gt;
  </code></pre>
  
  <p>How do I make the actual names and IDs of the states appear in my select tag?</p>