title: Rails: how to customize text_method in options_from_collection_for_select when collection was built with a inner join statement?
body: <p>I have a collection built with a Myclass.joins().where() statement. </p>
  
  <p>The problem I have is when I want to customize the text_method in:</p>
  
  <pre><code>options_from_collection_for_select(@collection,"id", custom_text_method)
  </code></pre>
  
  <p>My problem is that @collection items are not a instance of Myclass, but only a instance of Class.</p>
  
  <p>Thanks for any hints!
  Markus</p>