{"type":"rich","published":"2007-01-12 00:00:00","author_url":"https://blog.hatena.ne.jp/ma2/","url":"https://ma2.hatenadiary.com/entry/20070112/p1","title":" Rails\u3067n:m\u306e\u30e2\u30c7\u30eb\u3092\u7c21\u5358\u306bview\u304b\u3089update\u3059\u308b\u306b\u306f\uff1f","image_url":null,"blog_url":"https://ma2.hatenadiary.com/","description":"\u4f8b\u3048\u3070\u8ab2\u3068\u8ab2\u54e1\u304c\u3042\u3063\u3066\uff0c\u517c\u4efb\u306e\u8ab2\u54e1\u3082\u3044\u308b\u304b\u3089\u4e21\u8005\u306e\u95a2\u4fc2\u306fn:m\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3093\u3067\u3082\u3063\u3066\u300c\u8ab2\u306e\u7ba1\u7406\u753b\u9762\u300d\u3067\u5f93\u696d\u54e1\u4e00\u89a7\u304b\u3089\u300c\u30b3\u30a4\u30c4\u3068\u30b3\u30a4\u30c4\u3068\u30b3\u30a4\u30c4\u304c\u55b6\u696d\u7b2c\u4e00\u8ab2\u306d\u300d\u3066\u306a\u611f\u3058\u306b\u7de8\u96c6\u3055\u305b\u305f\u3044\u3002 <% for employ in @employees %> <%= check_box_tag 'employ', employ.id, @section.members.include?(employ) %><%= employ.name %><br> <% end %>\u3068\u304b\u3084\u3063\u3066\u5f93\u696d\u54e1\u306eid\u3092\u62fe\u3063\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u3063\u3066@section.members\u306b\u4ee3\u5165\u3057\u3066save\u3057\u3066\u3084\u308c\u3070\u3044\u3044\u306e\u304b\u306a\u3002\u3082\u3046\u5c11\u3057\u30a8\u30ec\u30ac\u30f3\u30c8\u2026","categories":["rails"],"author_name":"ma2","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fma2.hatenadiary.com%2Fentry%2F20070112%2Fp1\" title=\" Rails\u3067n:m\u306e\u30e2\u30c7\u30eb\u3092\u7c21\u5358\u306bview\u304b\u3089update\u3059\u308b\u306b\u306f\uff1f - ma2\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_url":"https://hatena.blog","width":"100%","blog_title":"ma2\u2019s diary","height":"190"}