{"type":"rich","published":"2013-01-03 15:56:28","provider_name":"Hatena Blog","blog_title":"\u306d\u3082\u3077\u3089\u3059","image_url":null,"author_url":"https://blog.hatena.ne.jp/yamazaru_rengou/","title":"Ruby on Rails 3 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0(5/9)","author_name":"yamazaru_rengou","version":"1.0","provider_url":"https://hatena.blog","url":"https://nemoplus.hateblo.jp/entry/2013/01/03/155628","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnemoplus.hateblo.jp%2Fentry%2F2013%2F01%2F03%2F155628\" title=\"Ruby on Rails 3 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0(5/9) - \u306d\u3082\u3077\u3089\u3059\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u76ee\u6b21 \u30e2\u30c7\u30eb\u958b\u767a \u57fa\u672c\u30e1\u30bd\u30c3\u30c9 Model.find(keys) : \u4e3b\u30ad\u30fc\u306b\u3088\u308b\u691c\u7d22\u3001\u914d\u5217\u53ef select * from Model where Model.id in ( keys ) Model.find_by_xxxx(value) : \u52d5\u7684\u30d5\u30a1\u30a4\u30f3\u30c0\u306b\u3088\u308b\u691c\u7d22 select * from Model where Model.xxxx = \"value\" limit 1 Model.find_all_by_xxxx(value) : \u52d5\u7684\u30d5\u30a1\u30a4\u30f3\u30c0\u306b\u3088\u308b\u691c\u7d22 select * from Model where Model.xxxx = \"value\" Model.find_all_by\u2026","width":"100%","categories":["Rails","Ruby"],"blog_url":"https://nemoplus.hateblo.jp/","height":"190"}