title: SImple_form_for in Rails 3.0 association select edit label
body: <p>I have a model RESOURCE. It have Association with Allocation. I am using Simple_form_for gem .I want display Resource name and his role to identify it uniquely in myu resource_vteam_allocation form. I already defined title method in resource in a hope resource will use title value but in vain. So kindly tell me what sort of changes do i need in this statement <code>&lt;%= f.association :resource, :required=&gt;:true,:collection=&gt;@selected_resource %&gt;</code> to show associated resource values with there resource_type</p>
  
  <pre><code>class Resource &lt; ActiveRecord::Base
    belongs_to :resource_type
    has_many :resource_vteam_allocation, :dependent =&gt; :destroy
    has_many :vteams, :through =&gt; :resource_vteam_allocation
    accepts_nested_attributes_for :resource_vteam_allocation, :allow_destroy =&gt; true
    def title
      "#{name} #{resource_type.title}"
    end
  end
  </code></pre>
  
  <p>class ResourceVteamAllocation &lt; ActiveRecord::Base
    belongs_to :resource</p>
  
  <p>end</p>
  
  <pre><code>&lt;%= simple_form_for([@resource_vteam_allocation.vteam, @resource_vteam_allocation],:remote=&gt;true, :html=&gt;{:multipart=&gt;true}) do |f| %&gt;
    &lt;%= f.error_notification %&gt;
    &lt;div class="inputs"&gt;
        &lt;%= f.association :resource, :required=&gt;:true,:collection=&gt;@selected_resource %&gt;
        &lt;%= f.input :resource_type, :required=&gt;:true, :label=&gt;"Joining As" %&gt;
        &lt;%= f.association :resource_billing_type, :required=&gt;:true, :label=&gt;"Billing Type"  %&gt;
    &lt;/div&gt;
    &lt;div class="actions" &gt;
      &lt;%= f.button :submit, :class=&gt;'button big' %&gt; &lt;span style="vertical-align: bottom"&gt;or&lt;/span&gt; &lt;%= link_to "Cancel", "#", :id=&gt;'new-xdoc-cancel' %&gt;
    &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>