Displaying 1 result from an estimated 1 matches for "vehicul".
Did you mean:
vehicula
2006 May 15
0
wrong argument type String (expected Module)
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...