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

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

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:

TYPES = [
["Car", "Car"],
["Truck", Truck"],
["Bike", "Bike"]
]

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


What did I miss?

Thanks
This topic is locked and can not be replied to.