Collection_select

hey, i have a model called continents, that has a name and an id, anyone
know why this doesnt work

<%= collection_select(:continent, :name, @continents, :id, :name),

but this does

<%= collection_select(:continent, :id, @continents, :id, :name), many
thanks

The first results in a:

undefined method `name’ for #Array:0x22cff08

Thankyou.

Fixed it myself, i actually put the correct code in this post, in my
app, i had @continent, instead of @continents, didnt realise it was
plural sensitive.