I get "WARNING: I cannot assign protected attributes: type", but I have no calls to attr_accessible or attr_protected in my code.
attr_accessible
attr_protected
Is there anything else that might cause the attribute to be protected?
I donβt really like to add all the attributes to the attr_accessible , because this is becoming one more thing to support.
The type attribute is reserved for internal use to inherit from a single table.
type
You can use type by setting set_inheritance_column
set_inheritance_column
set_inheritance_column :kind # change to something other than :type.
Check out: Rails attr_accessible doesn't work for: type?
:type is your problem.
:type