title: rails simple_form_for association select text
body: <p>I am using Rails 3.0, Ruby 1.9.2 and the Plataformatec simple_form gem.</p>
  
  <p>The code below renders a select box with Consumer names. I want it to show a select box with  Consumer locations instead. How do I do that?</p>
  
  <p>View code:</p>
  
  <pre><code>&lt;%= simple_form_for @request do |f| %&gt;
    &lt;%= f.association :consumer, :collection =&gt; Consumer.all, :prompt =&gt; "Choose a location" %&gt;
    &lt;%= f.button :submit %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Model code:</p>
  
  <pre><code>Consumer &lt; ActiveRecord::Base
    attr_accessor :name, :location
  end
  </code></pre>