{"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fikm.hatenablog.jp%2Fentry%2F2014%2F04%2F03%2F170115\" title=\"accepts_nested_attributes_for\u3092\u591a\u6bb5\u3067\u4f7f\u3046 - There&#39;s an echo in my head\" 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","image_url":null,"version":"1.0","categories":["rails","activerecord","actioncontroller"],"blog_url":"https://ikm.hatenablog.jp/","height":"190","url":"https://ikm.hatenablog.jp/entry/2014/04/03/170115","title":"accepts_nested_attributes_for\u3092\u591a\u6bb5\u3067\u4f7f\u3046","author_url":"https://blog.hatena.ne.jp/a2ikm/","author_name":"a2ikm","description":"\u8907\u6570\u306e\u95a2\u9023\u3092\u8de8\u3044\u3067accepts_nested_attributes_for\u3092\u4f7f\u3046\u5834\u5408\u306e\u8a71\u3002 \u305f\u3068\u3048\u3070 Organization has_many Groups Group has_many Employees \u3068\u3044\u3046\u30e2\u30c7\u30eb\u306b\u5bfe\u3057\u3066\u30011\u5ea6\u306b\u307e\u3068\u3081\u3066\u3053\u308c\u3089\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3002 \u307e\u305a\u306f\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9: class Organization has_many :groups, inverse_of: :organization accepts_nested_attributes_for :groups # attributes: # name:string end class\u2026","width":"100%","published":"2014-04-03 17:01:15","provider_url":"https://hatena.blog","blog_title":"There's an echo in my head"}