The single-table inheritance mechanism failed to locate the subclass: ......
......
基本上,十之八九就是有个字段被命名为type了,type属于ActiveRecord保留的属性,还是别用了。
最简单的办法,字段改名吧,改不了名,那这个英文也许能帮你:
This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Site.inheritance_column to use another column for that information.
让你去修改这个属性,挑个另外一个字段来存储继承信息,还是看需求了。
如果你的表是从其他应用迁移过来,并且很多地方都依赖这个名字,那建议还是修改这个属性,否则,改名吧。。。
Tags: ,
Ruby | 评论(1) | 引用(0) | 阅读(1466)
BMW
2008/12/24 23:30
smile这款风格很好看噢。。
请问博主能不能把你现在默认的风格给我一份呀?呵呵。。谢谢了

franklight@vip.qq.com
分页: 1/1 第一页 [1] 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 请输入左侧的字母,不区分大小写