Ruby on Rails: How to change the Foriegn Key values on a collection_select drop down? <p>I have a drop down on my form which is a foreign key to another table:</p> <pre><code>&lt;div class="field"&gt; &lt;td&gt;&lt;%= f.label "#{column_name}" %&gt;&lt;/td&gt; &lt;td&gt;&lt;%= f.collection_select "#{column_name}", Table.all, :id, :message_id %&gt;&lt;/td&gt; &lt;/div&gt; </code></pre> <p>"Table" has a column "message_id" which is a foreign_key to a different table "Messages".</p> <p>The "Messages" table contains all the text/strings in my application.</p> <p>When I load this code on my page it will give me a drop down list of all records but it will only show foreign key ID numbers pointing to the "Messages" table.</p> <p>How can I change the foreign key ID numbers in the drop down to switch with message content I have on my Messages table?</p>