Collection_Select not showing Selected option

Hi, I'm having some problem with getting collection_select to return the current value when editing a record. According to everything I've seen, there was an issue but it's been fixed, but I can't figure out why it isn't returning the current value as a selected option. I've checked the table structures, and both the call_driver.product_line_id and the product_line.id are int(11).

What am I missing?

Here's the code;

Hi, I'm having some problem with getting collection_select to return the current value when editing a record. According to everything I've seen, there was an issue but it's been fixed, but I can't figure out why it isn't returning the current value as a selected option. I've checked the table structures, and both the call_driver.product_line_id and the product_line.id are int(11).

What am I missing?

Here's the code;

###   <tr>     <td>Product Line</td>     <td><%= @drivers.product_line.name %></td> # Troubleshooting only     <td><%= collection_select(:driver,"product_line_id",@productline,:id,:name) %></td>

Your instance variables is called @drivers, so the first parameter to
collection_select must match, i.e. be :drivers (although in this case
it looks like it would make more sense o rename the instance variable
to @driver

Fred