Hi all
I have a model Product1 and Product2 which both have Product as parent
class. I use single table inheritance to share their similar DB fields.
Now I wanted to add acts_as_list for them, and wanted to use :scope =>
:type so the position numbers are not shared between Product1 and
Product2 but every Class has its own order.
Sadly when adding a new Product1 or Product2 I get the following error:
NameError in UnikateController#manage
undefined local variable or method `type_id’ for #Product1:0x25a5270
Why does Rails append an “_id” suffix to type? Is it not possible to use
“type” only?
Thanks. Josh