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)?
where Property::TYPES is an array like that:
<%= options = [["Select Type", ""]] + Property::TYPES
select('property', 'type', options) %></p>
TYPES = [