{"blog_url":"https://bokukoko.hatenablog.com/","type":"rich","categories":[],"author_name":"cevid_cpp","width":"100%","provider_url":"https://hatena.blog","title":"\u4ed5\u4e8b\u3067\u5b66\u3093\u3060\u30a4\u30ab\u3057\u305fRails\u30c6\u30af\u30cb\u30c3\u30af","image_url":null,"height":"190","blog_title":"\u30dc\u30af\u30b3\u30b3","version":"1.0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/cevid_cpp/","description":"\u6bce\u56de\u540c\u3058DB\u30a2\u30af\u30bb\u30b9\u306e\u5834\u5408\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u3088\u306d\u3002 \u4eca\u65e5\u306f\u3061\u3087\u3063\u3068\u611f\u52d5\u3057\u305f\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3002 Rails\u9ad8\u901f\u5316\u306b\u306f\u3053\u3046\u3044\u3046\u30c6\u30af\u30cb\u30c3\u30af\u304c\u5fc5\u8981\u3067\u3059\u306a\u3041\u3002 class Area ActiveRecord::Base @@cache = nil class def find_default_area() unless @@cache @@cache = find(:all,:conditions....) end return @@cache end endend\u30af\u30e9\u30b9\u5909\u6570\u306b\u3053\u3046\u3044\u3046\u5f62\u3067\u4f7f\u3046\u3068\u306f\u306a\u308b\u307b\u3069\u3001\u3068\u601d\u3044\u307e\u3057\u305f\u3002","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbokukoko.hatenablog.com%2Fentry%2F20120523%2F1337775361\" title=\"\u4ed5\u4e8b\u3067\u5b66\u3093\u3060\u30a4\u30ab\u3057\u305fRails\u30c6\u30af\u30cb\u30c3\u30af - \u30dc\u30af\u30b3\u30b3\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://bokukoko.hatenablog.com/entry/20120523/1337775361","published":"2012-05-23 21:16:01"}