{"title":"RailsTutorial13\u7ae0","blog_url":"https://programingoo.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/shiness/","categories":[],"description":"\u8907\u5408\u30ad\u30fc\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 add_index :microposts, [:user_id, :created_at] new\u3067\u306f\u306a\u304fbuild\u3067\u66f8\u304f\u3068\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u30d9\u30fc\u30b9\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u3057\u3066\u3044\u308b \u3053\u3068\u3092\u660e\u793a\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002 proc default_scope -> { order(created_at: :desc) } >> -> { puts \"foo\" } => #<Proc:0x007fab938d0108@(irb):1 (lambda)> >> -> { puts \"foo\" }.call foo => nil render\u8a18\u6cd5 <ol class=\"microposts\"> \u2026","provider_name":"Hatena Blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/shiness/20210117/20210117231514.png","url":"https://programingoo.hatenablog.com/entry/2021/01/18/014348","height":"190","published":"2021-01-18 01:43:48","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogramingoo.hatenablog.com%2Fentry%2F2021%2F01%2F18%2F014348\" title=\"RailsTutorial13\u7ae0 - \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","provider_url":"https://hatena.blog","author_name":"shiness","width":"100%","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8","version":"1.0"}