Invalid single-table inheritance type: 1 is not a subclass of
2013-05-28 14:49
417 查看
ActiveRecord::SubclassNotFound (Invalid single-table inheritance type: 1 is not a subclass of Theader):
app/controllers/theaders_controller.rb:27:in `create'
rails(ruby)报这个错误的时候,请各位就要检查自己的数据库字段是不是有叫 type 的,如果有的话,请修改为其他的,这个似乎是保留字
app/controllers/theaders_controller.rb:27:in `create'
rails(ruby)报这个错误的时候,请各位就要检查自己的数据库字段是不是有叫 type 的,如果有的话,请修改为其他的,这个似乎是保留字
相关文章推荐
- AS.NET2.0 用户控件错误!!The base class includes the field 'MyControl_1', but its type (MyControl) is not compatible with the type of control (ASP.MyControl_ascx).
- This error is raised because the column 'type' is reserved for storing the class in case of inheritance
- The base class includes the field '...', but its type (...) is not compatible with the type of control (...)
- object is not an instance of declaring class&argument type mismatch
- object of abstract class type "我的类" is not allowed 解决方案
- SparkR去数据子集错误:object of type 'S4' is not subsettable
- How to solve 'object of abstract class type "newFoo" is not allowed'?
- object of abstract class type "我的类" is not allowed 解决方案
- R语言summary()报错object of type 'closure' is not subsettable的原因
- Access restriction: The method typeNameToClass(String) from the type ObjectHandler is not accessible due to restriction on required library
- 抓狂的c++错误:...which is of non-class type..
- 关于The method setMapperClass(Class<? extends Mapper>) in the type Job is not applicable for the argum
- 【C++】如何解决“pointer to incomplete class type is not allowed”。
- No exception of type JmsException can be thrown; an exception type must be a subclass of Throwable
- java反射错误:object is not an instance of declaring class
- The entity type <type> is not part of the model for the current context
- matlab错误:Function 'conv2' is not defined for values of class 'double' and attributes
- C++ Class incomplete type is not allowed
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the问题
- 继承一个类的时候报错:The hierarchy of the type 'Class name' is inconsistent