Wrong argument type String (expected Module)


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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs