Forum: Ruby on Rails wrong argument type String (expected Module)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Erwann (Guest)
on 2006-05-15 23:42

When I create a select in a form, I get this error:
wrong argument type String (expected Module)

I know that 'type' is a reserved word for STI and that's what I want: a
select box to choose the right type of Vehicule object:

["Car", "Car"],
["Truck", Truck"],
["Bike", "Bike"]

<%= options = [["Type", ""]] + Vehicule::TYPES
    select('vehicule', 'type', options) %>

What did I miss?

This topic is locked and can not be replied to.