{"id":13565,"date":"2013-11-04T11:53:41","date_gmt":"2013-11-04T02:53:41","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=13565"},"modified":"2013-11-04T11:53:41","modified_gmt":"2013-11-04T02:53:41","slug":"rails-4-0-1","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/rails-4-0-1\/","title":{"rendered":"\u5927\u91cf\u30d0\u30b0\u4fee\u6b63\u304c\u884c\u308f\u308c\u305f\u300cRails 4.0.1\u300d\u30ea\u30ea\u30fc\u30b9"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/11\/blograils.png\" alt=\"Rails\" title=\"rails.png\" border=\"0\" width=\"235\" height=\"300\" \/><\/p>\n<p>Rails 4.0.X\u7cfb\u5217\u306e\u6700\u65b0\u7248\u300c<a href=\"http:\/\/rubyonrails.org\/\">Rails 4.0.1<\/a>\u300d\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f(<a href=\"http:\/\/weblog.rubyonrails.org\/\">\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/a>\u3001<a href=\"http:\/\/techracho.bpsinc.jp\/baba\/2013_11_02\/14645\">TechRacho<\/a>)\u3002<\/p>\n<p>4.0.1\u3067\u306f460\u30b3\u30df\u30c3\u30c8\u4ee5\u4e0a\u306e\u30d0\u30b0\u4fee\u6b63\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u4ed6\u3001\u91cd\u8981\u306a\u5909\u66f4\u70b9\u3068\u3057\u3066\u3001\u8907\u6570\u56deorder\u3092\u547c\u3093\u3060\u3068\u304d\u306e\u512a\u5148\u9806\u4f4d\u304c\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/strong><\/p>\n<pre>\nUser.order(\"name asc\").order(\"created_at desc\")\n<\/pre>\n<p><strong>4.0.0<\/strong>\u3060\u3068\u3001\"ORDER BY created_at desc, name asc\"<\/p>\n<pre>\nSELECT * FROM users ORDER BY created_at desc, name asc\n<\/pre>\n<p><strong>4.0.1<\/strong>\u3060\u3068\u3001 \"ORDER BY name asc, created_at desc\"<\/p>\n<pre>SELECT * FROM users ORDER BY name asc, created_at desc<\/pre>\n<p>\u7d30\u304b\u3044\u3051\u3069\u8981\u6ce8\u610f\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rails 4.0.X\u7cfb\u5217\u306e\u6700\u65b0\u7248\u300cRails 4.0.1\u300d\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f(\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u3001TechRacho)\u3002 4.0.1\u3067\u306f460\u30b3\u30df\u30c3\u30c8\u4ee5\u4e0a\u306e\u30d0\u30b0\u4fee\u6b63\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u4ed6\u3001\u91cd\u8981\u306a\u5909\u66f4\u70b9\u3068\u3057\u3066\u3001\u8907\u6570\u56deorder\u3092 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":13564,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[350,154],"class_list":["post-13565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-rails","tag-ruby"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/13565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=13565"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/13565\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/13564"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=13565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=13565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=13565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}