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
--
Posted via http://www.ruby-forum.com/.
