{"published":"2014-12-08 00:44:08","blog_url":"https://gennei.hatenablog.jp/","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/gennei/","type":"rich","version":"1.0","categories":["Ruby","Ruby on Rails"],"author_name":"gennei","provider_url":"https://hatena.blog","title":"Rails Tutorial 10\u7ae0 \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u4f5c\u6210\u6642\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u89e3\u6c7a\u3057\u305f","url":"https://gennei.hatenablog.jp/entry/2014/12/08/004408","blog_title":"gennei's blog","height":"190","description":"\u203b\u52d5\u4f5c\u74b0\u5883\u306fRails 4.1.6\u3067\u3059 \u300c\u30ea\u30b9\u30c810.20 \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306b\u30de\u30a4\u30af\u30ed\u30dd\u30b9\u30c8\u7528\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3002\u300d\u306e\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9 users = User.all(limit: 6) Rails4\u304b\u3089\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e \u30e2\u30c7\u30eb.all(limit: num) \u306f\u5ec3\u6b62\u306b\u306a\u3063\u305f\u3002 \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63 users = User.limit(6) \u3053\u308c\u30676\u4ef6\u307e\u3067\u62bd\u51fa\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgennei.hatenablog.jp%2Fentry%2F2014%2F12%2F08%2F004408\" title=\"Rails Tutorial 10\u7ae0 \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u4f5c\u6210\u6642\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u89e3\u6c7a\u3057\u305f - gennei&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"width":"100%"}