<p>I have a drop down like this on my page:</p>

<pre><code>&lt;p&gt;
     &lt;%= f.label :episode_id %&gt;&lt;br /&gt;
     &lt;%= f.collection_select(:episode_id, @episodes, :id, :show) %&gt;
&lt;/p&gt;
</code></pre>

<p>An episode has an id and <code>belongs_to</code> to a show which has a name.  In the dropdown, I'd like to display the show name.  <code>:show.name</code> doesn't work to display the name.  How do I do this?</p>

One way to do this would be to create a method in your Episode class called
```
show_name
```
like so:
```
```
def show_name
  show.name
end
```
```
The last symbol you are passing into collection_select is the name of the method that you want to call to get the option text.