{"blog_url":"https://blog.kyanny.me/","author_url":"https://blog.hatena.ne.jp/a666666/","categories":["Rails"],"description":"STI and uninitialized constant error | Blogger cat\u3053\u308c\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u72b6\u6cc1\u306b\u306a\u3063\u305f\u3002 STI (Single Table Inheritance) \u3092\u4f7f\u3063\u3066\u7d99\u627f\u3057\u305f\u5b50\u306e\u30e2\u30c7\u30eb\u306e\u30af\u30e9\u30b9\u540d\uff08\u5b9a\u6570\uff09\u3092\u53c2\u7167\u3059\u308b\u3068 NameError: uninitialized constant \u304c\u767a\u751f\u3059\u308b\u3002\u5148\u306b\u89aa\u306e\u30e2\u30c7\u30eb\u306e\u30af\u30e9\u30b9\u540d\u3092\u4e00\u56de\u53c2\u7167\u3057\u305f\u3042\u3068\u3067\u306f\u767a\u751f\u3057\u306a\u3044\u3002\u3053\u308c\u306f Rails \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u30ed\u30fc\u30c9\u306e\u4ed5\u7d44\u307f\u306b\u8d77\u56e0\u3057\u3066\u3044\u3066\u3001 class Script < ActiveRecord::Base end class ScriptTask < Script end clas\u2026","type":"rich","version":"1.0","provider_name":"Hatena Blog","width":"100%","provider_url":"https://hatena.blog","title":"STI \u3067\u7d99\u627f\u3057\u305f\u30e2\u30c7\u30eb\u306e\u30af\u30e9\u30b9\u540d\u3092\u53c2\u7167\u3057\u305f\u3089 uninitialized constant \u30a8\u30e9\u30fc","height":"190","image_url":null,"published":"2011-09-05 01:22:46","author_name":"a666666","url":"https://blog.kyanny.me/entry/20110905/1315239766","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F20110905%2F1315239766\" title=\"STI \u3067\u7d99\u627f\u3057\u305f\u30e2\u30c7\u30eb\u306e\u30af\u30e9\u30b9\u540d\u3092\u53c2\u7167\u3057\u305f\u3089 uninitialized constant \u30a8\u30e9\u30fc - @kyanny&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"@kyanny's blog"}