{"author_url":"https://blog.hatena.ne.jp/techinterfirm/","height":"190","url":"https://interfirm.hatenablog.com/entry/2014/07/30/200431","image_url":null,"published":"2014-07-30 20:04:31","title":"\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u306e\u5b50\u304b\u3089\u89aa\u3092\u751f\u6210\u3059\u308b","blog_url":"https://interfirm.hatenablog.com/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finterfirm.hatenablog.com%2Fentry%2F2014%2F07%2F30%2F200431\" title=\"\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u306e\u5b50\u304b\u3089\u89aa\u3092\u751f\u6210\u3059\u308b - \u30a4\u30f3\u30bf\u30fc\u30d5\u30a1\u30fc\u30e0\u958b\u767a\u90e8\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","version":"1.0","provider_name":"Hatena Blog","author_name":"techinterfirm","categories":["Rails","\u958b\u767a\u90e8"],"description":"\u3053\u3093\u306b\u3061\u306f\u3002\u521d\u3081\u3066\u304a\u76ee\u306b\u304b\u304b\u308b\u65b9\u3001\u521d\u3081\u307e\u3057\u3066\u3002 @return_right34\u3068\u7533\u3057\u307e\u3059\u3002\u4e00\u5fdc\u793e\u54e1\u3067\u3059\u3002\u6700\u8fd1\u3001\u3053\u308c\u307e\u3067\u3068\u306f\u6253\u3063\u3066\u5909\u308f\u3063\u305f\u53ef\u611b\u3089\u3057\u3044\u30c7\u30b6\u30a4\u30f3\u306e\u307e\u3068\u3081\u30b5\u30a4\u30c8\u3092\u5236\u4f5c\u3057\u3066\u3044\u308b\u79c1\u3067\u3059\u304c\u3001 \u3068\u3042\u308b\u554f\u984c\u306b\u3076\u3064\u304b\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 \u554f\u984c\u306e\u89aa\u5b50 # app/models/article.rb class Article has_many :items end # app/models/item.rb class Item belongs_to :article belongs_to :itemable, polymorphic: true end # app/models/te\u2026","width":"100%","blog_title":"\u30a4\u30f3\u30bf\u30fc\u30d5\u30a1\u30fc\u30e0\u958b\u767a\u90e8\u30d6\u30ed\u30b0"}