Results 1 to 8 of 8
May 30, 2006, 08:10 #1
- Join Date
- Jun 2004
- 0 Post(s)
- 0 Thread(s)
wrong argument type String (expected Module)
I don't understand this error. I have an STI table "properties" with different children like House, Flat, Land...
when I want to add a new property, instead of creating a new House or Flat, I do New Property and list in a select box the different types but I get this error
It works for any column in the table except the type column. Should I create directly the proper subclass (ie new Home instead of new Property)?
<%= options = [["Select Type", ""]] + Property::TYPES
select('property', 'type', options) %></p>
TYPES = [