{"width":"100%","url":"https://yuuxxxx.hatenablog.com/entry/2013/12/06/225952","categories":["Rails","\u899a\u3048\u66f8\u304d"],"title":"\u540d\u524d\u7a7a\u9593\u304c\u3042\u308b\u30e2\u30c7\u30eb\u306bhas_many\u3068\u304b\u3084\u308a\u305f\u3044\u6642\u3063\u3066\u305f\u307e\u306b\u3042\u308b\u3051\u3069\u3053\u3046\u3059\u308b\u3068\u3044\u3044\u3089\u3057\u3044","image_url":null,"author_url":"https://blog.hatena.ne.jp/yuu_xxxx/","type":"rich","author_name":"yuu_xxxx","published":"2013-12-06 22:59:52","version":"1.0","blog_title":"\u3086\u3046\u306a\u3093\u3068\u304b\u3055\u3093\u306e\u96d1\u8a18\u5e33\u7684\u306a\u3002","provider_url":"https://hatena.blog","height":"190","blog_url":"https://yuuxxxx.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuuxxxx.hatenablog.com%2Fentry%2F2013%2F12%2F06%2F225952\" title=\"\u540d\u524d\u7a7a\u9593\u304c\u3042\u308b\u30e2\u30c7\u30eb\u306bhas_many\u3068\u304b\u3084\u308a\u305f\u3044\u6642\u3063\u3066\u305f\u307e\u306b\u3042\u308b\u3051\u3069\u3053\u3046\u3059\u308b\u3068\u3044\u3044\u3089\u3057\u3044 - \u3086\u3046\u306a\u3093\u3068\u304b\u3055\u3093\u306e\u96d1\u8a18\u5e33\u7684\u306a\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","description":"\u304a\u3068\u306a\u3057\u304f\u540c\u3058\u540d\u524d\u7a7a\u9593\u306b\u30e2\u30c7\u30eb\u304c\u3042\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u3070\u3001AwesomeLibrary::AwesomeModel\u3068\u3044\u3046\u540d\u524d\u306e\u30e2\u30c7\u30eb\u304c\u3042\u3063\u3066\u305d\u3053\u30681:N\u306e\u95a2\u4fc2\u3092\u6301\u305f\u305b\u305f\u3044\u3068\u3057\u307e\u3057\u3087\u3046\u3002 \u666e\u901a\u306f has_many :awesome_models \u3068\u304b\u3084\u308b\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u306fAwesomeModel\u3092\u63a2\u305d\u3046\u3068\u3057\u3066\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002\u7b54\u3048\u306f\u3053\u3061\u3089\u3002 has_many :awesome_models, classname: \"AwesomeLibrary::AwesomeModel\" \u304a\u3082\u3048\u3070\u306a\u3093\u3066\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u306d\u3002\u30af\u30e9\u30b9\u540d\u3092\u6307\u5b9a\u3057\u3066\u3084\u308c\u3070\u3088\u304b\u3063\u305f\u308f\u3051\u3067\u3059\u3002 \u56f0\u3063\u305f\u7406\u7531 \u81ea\u52d5\u751f\u6210\u3055\u308c\u305f\u3068\u2026"}