{"id":5611,"date":"2011-05-26T19:23:16","date_gmt":"2011-05-26T11:23:16","guid":{"rendered":"http:\/\/ihower.tw\/blog\/?p=5611"},"modified":"2011-09-05T15:10:09","modified_gmt":"2011-09-05T07:10:09","slug":"rails-3-1-rc-%e7%99%bc%e4%bd%88-%e9%87%8d%e9%bb%9e%e5%b0%8e%e8%a6%bd","status":"publish","type":"post","link":"https:\/\/ihower.tw\/blog\/5611-rails-3-1-rc-%e7%99%bc%e4%bd%88-%e9%87%8d%e9%bb%9e%e5%b0%8e%e8%a6%bd","title":{"rendered":"Rails 3.1 RC \u767c\u4f48: \u91cd\u9ede\u5c0e\u89bd"},"content":{"rendered":"<p>Update(2011\/8\/31): \u6b63\u5f0f\u91cb\u51fa! <a href=\"http:\/\/ihower.tw\/blog\/archives\/5611\">Rails 3.1.0 has been released!<\/a><\/p>\n<p>\u7167<a href=\"http:\/\/ihower.tw\/blog\/archives\/3653\">\u6163<\/a><a href=\"http:\/\/ihower.tw\/blog\/archives\/4590\">\u4f8b<\/a>\u4f86\u6574\u7406\u4e00\u7bc7 Rails 3.1 \u91cd\u9ede\uff0c\u82b1\u4e86\u9ede\u6642\u9593\u770b\u904e\u4e00\u904d Changelogs (TL;DR;)\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/weblog.rubyonrails.org\/2011\/5\/22\/rails-3-1-release-candidate\">\u5b98\u65b9 3.1 RC \u767c\u4f48\u516c\u544a<\/a><\/li>\n<li><a href=\"http:\/\/railscasts.com\/episodes\/265-rails-3-1-overview\">Railscasts: #265 Rails 3.1 Overview<\/a><\/li>\n<\/ul>\n<h2>\u65b0\u7684\u9810\u8a2d jQuery<\/h2>\n<p><a href=\"http:\/\/weblog.rubyonrails.org\/2011\/4\/21\/jquery-new-default\">jQuery: New Default<\/a>: \u5b98\u65b9\u7684\u8aaa\u660e<\/p>\n<p>jQuery \u53d6\u4ee3 prototype.js \u6210\u70ba\u65b0\u7684\u9810\u8a2d JavaScript \u51fd\u5f0f\u5eab\u3002\u53e6\u5916\uff0cRJS \u4e5f\u5f9e\u6838\u5fc3\u4e2d\u88ab\u79fb\u51fa\u6210\u70ba Plugin\u3002\u9084\u8a18\u5f97\u7576\u5e74\u4ee4\u4eba\u8208\u596e\u7684 RJS \u529f\u80fd\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u5beb\u7c21\u55ae\u7684 Ajax \u6548\u679c\uff0c\u5982\u4eca\u53c8\u56de\u5230\u76f4\u63a5\u5beb JavaScript \u624d\u662f\u738b\u9053\u3002<\/p>\n<h2>Assets pipeline<\/h2>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=cGdCI2HhfAU\">RailsConf 2011, David Heinemeier Hansson<\/a>: \u4eca\u5e74 DHH \u5728 RailsConf \u7684\u6f14\u8b1b\uff0c\u91cd\u9ede\u5c31\u5728\u4ecb\u7d39 Assets pipeline\u3002<\/p>\n<p>\u975c\u614b\u6a94\u6848\u6210\u70ba\u4e00\u7d1a\u516c\u6c11\u4e86\uff0cRails 3.1 \u900f\u904e <a href=\"http:\/\/getsprockets.org\/\">Sprockets<\/a> \u6253\u5305\u548c\u58d3\u7e2e\u975c\u614b\u6a94\u6848\uff0c\u4e5f\u652f\u63f4\u7de8\u8b6f <a href=\"http:\/\/sass-lang.com\/\">Sass<\/a> \u548c <a href=\"http:\/\/jashkenas.github.com\/coffee-script\/\">CoffeeScript<\/a>\u3002\u7d30\u7bc0\u8acb\u53c3\u8003\u6211\u66f8\u7684 <a href=\"http:\/\/ihower.tw\/rails3\/assets.html\">Assets \u4e00\u7ae0<\/a>\u3002<\/p>\n<p>\u5c07 CoffeeScript \u7d0d\u5165\u9810\u8a2d\u6709\u4e0d\u5c11<a href=\"http:\/\/www.rubyinside.com\/rails-3-1-adopts-coffeescript-jquery-sass-and-controversy-4669.html\">\u722d\u8b70<\/a>\uff0c\u7562\u7adf\u7528 CoffeeScript \u5be6\u5728\u53c8\u591a\u4e86\u5b78\u7fd2\u8ca0\u64d4\uff0c\u4e0d\u662f\u9019\u9ebc\u591a\u4eba\u559c\u6b61\u3002\u4e0d\u904e\u5b83\u5176\u5be6\u53ea\u662f Gemfile \u9810\u8a2d\u8f09\u5165\u7684\u4e00\u884c\u800c\u5df2\uff0c\u5982\u679c\u4e0d\u7528\u62ff\u6389\u5373\u53ef\u3002<\/p>\n<h2>HTTP Streaming<\/h2>\n<p>HTTP Streaming \u529f\u80fd\u662f Rails 3.1 \u7684\u4e00\u500b\u5be6\u9a57\u6027\u7a81\u7834\uff0c\u53ef\u4ee5\u5728 render \u6a23\u677f\u7684\u540c\u6642\uff0c\u5c31\u540c\u6642\u958b\u59cb\u4e0b\u8f09\u8cc7\u6599\u4f86\u7bc0\u7701\u6642\u9593\u3002\u539f\u7406\u662f HTTP 1.1 \u5354\u5b9a\u4e2d\u7684 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Chunked_transfer_encoding\">Chunked transfer encoding<\/a> \u50b3\u8f38\u6a5f\u5236\u3002\u6211\u63a8\u85a6\u53ef\u4ee5\u770b\u770b&nbsp;Facebook \u7684 <a href=\"http:\/\/www.facebook.com\/notes\/facebook-engineering\/bigpipe-pipelining-web-pages-for-high-performance\/389414033919\">BigPipe<\/a> \u61c9\u7528\u5176\u5be6\u5c31\u662f\u9019\u500b\u6280\u8853\u3002<\/p>\n<p>\u9019\u529f\u80fd\u9810\u8a2d\u662f\u95dc\u9589\u7684\uff0c\u800c\u4e14\u4e5f\u4e0d\u662f\u6253\u958b\u8a2d\u5b9a\u5c31\u99ac\u4e0a\u53ef\u4ee5\u4eab\u53d7\u5230\u3002\u56e0\u70ba render \u7684\u6d41\u7a0b\u4e0d\u540c\u4e86\uff0c\u672c\u4f86\u53ef\u4ee5\u5148 render template&nbsp;\u518d\u5957 layout \u7684\uff0c\u7528 streaming \u7684\u8a71\u662f\u6539\u5f9e Layout \u5148\u958b\u59cb\uff0c\u7531\u4e0a\u5f80\u4e0b\u4e00\u884c\u4e00\u5410\u51fa\u7d50\u679c\u5c31\u4e1f\u7d66\u700f\u89bd\u5668\uff0c\u56e0\u6b64\u9700\u8981\u642d\u914d\u6ce8\u610f\u7684\u7d30\u7bc0\u4e0d\u5c11\uff0c\u50cf\u662f\u8981\u7528 Ruby 1.9\u3001\u7db2\u9801\u4f3a\u670d\u5668\u8981\u652f\u63f4\u3001template \u4e2d\u4e0d\u80fd\u8b80\u53d6 layout \u4e2d\u7684\u8b8a\u6578\u3001\u4f7f\u7528 provide helper \u53d6\u4ee3 content_for\u3001Controller \u7684\u64cd\u4f5c\u5fc5\u9808\u76e1\u53ef\u80fd\u7684\u6539\u6210 Lazy method (\u4e5f\u5c31\u662f\u771f\u6b63\u8017\u6642\u7684\u52d5\u4f5c\u5f97\u5be6\u969b\u767c\u751f\u5728 View \u4e2d\uff0c\u4f8b\u5982 SQL query\uff0c\u4e0d\u7136\u6642\u9593\u5361\u5728 Action \u88e1\u6c92\u9032\u5230 View \u5c31\u6c92\u8fa6\u6cd5\u63d0\u65e9\u50b3\u7d50\u679c\u51fa\u53bb\u5566\u3002\u597d\u52a0\u5728 ActiveRecord \u7684 Query \u90fd\u5df2\u7d93\u662f Lazy  method \u4e86)\uff0c\u6700\u5f8c\u6240\u6709\u4f60\u7528\u5230\u7684 Rack Middleware \u5c64\u90fd\u5fc5\u9808\u652f\u63f4 HTTP Streaming\uff0c\u842c\u4e00\u5176\u4e2d\u6709 Middleware \u9700\u8981\u7b49 response \u5b8c\u6574\u7684 body \u5167\u5bb9\u624d\u80fd\u8655\u7406\uff0c\u90a3\u9ebc\u5c31\u6703\u5361\u4f4f\u800c\u5931\u53bb Streaming \u63d0\u65e9\u9001\u8cc7\u6599\u7d66\u700f\u89bd\u5668\u7684\u610f\u7fa9\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/weblog.rubyonrails.org\/2011\/4\/18\/why-http-streaming\">\u5b98\u65b9\u516c\u544a<\/li>\n<\/li>\n<li><a href=\"http:\/\/asciicasts.com\/episodes\/266-http-streaming\">ASCIIcasts: HTTP Streaming<\/a>\u6216 <a href=\"http:\/\/railscasts.com\/episodes\/266-http-streaming\">Railscasts<\/a> \u5f71\u7247<\/li>\n<li><a href=\"https:\/\/github.com\/rails\/rails\/blob\/master\/actionpack\/lib\/action_controller\/metal\/streaming.rb\">API \u6587\u4ef6<\/a>\uff1a\u771f\u8981\u7528\u7684\u8a71\u5fc5\u8b80<\/li>\n<\/ul>\n<h2>Migration<\/h2>\n<p><a href=\"http:\/\/edgerails.info\/articles\/what-s-new-in-edge-rails\/2011\/05\/06\/reversible-migrations\/index.html\">Reversible migration<\/a>\uff1a\u65b0\u7684 change \u65b9\u6cd5\u53ef\u4ee5\u4e0d\u9700\u8981\u5206\u958b\u5beb up \u8ddf down \u4e86\uff0cRails \u6703\u81ea\u52d5\u5c0d\u61c9\u51fa down \u7684\u64cd\u4f5c\uff0c\u731c\u4e0d\u51fa\u4f86\u7684\u6642\u5019\u624d\u6703\u8981\u4f60\u88dc\u5beb down \u65b9\u6cd5\u3002<\/p>\n<p>\u9084\u6709\uff0cMigrations \u5167\u7d71\u4e00\u6539\u7528 Instance methods \u800c\u4e0d\u662f class methods \u4e86\uff0c\u5beb def up \u548c def down \u5373\u53ef\uff0c\u4e0d\u9700\u8981 def self.up \u548c def self.down\u3002<\/p>\n<h2>Rack::Cache<\/h2>\n<p>\u52a0\u5165\u4e86&nbsp;<a href=\"http:\/\/rtomayko.github.com\/rack-cache\/\">Rack-cache<\/a> middleware \uff0c\u642d\u914d  #expires_in, #fresh_when, #stale with :public => true \u7b49<a href=\"https:\/\/github.com\/rails\/rails\/blob\/master\/actionpack\/lib\/action_controller\/metal\/conditional_get.rb\">\u65b9\u6cd5<\/a>\uff0c\u4e26\u4f7f\u7528\u4f60\u8a2d\u5b9a\u7684 Caching store \u4f86\u5b58\u653e\u8cc7\u6599 (\u4f8b\u5982memcached)\u3002<\/p>\n<p>\u6ce8\u610f\u5230\u56e0\u70ba\u6709\u4e86 Rack::Cache\uff0c\u539f\u672c Controller \u7684 Page caching \u88ab\u79fb\u9664\u4e0d\u9700\u8981\u4e86\u3002<\/p>\n<p>\u63a1\u7528 Rack-caching \u771f\u6b63\u7684\u91cd\u9ede\u5012\u4e0d\u662f\u5728\u65bc\u589e\u52a0\u6548\u80fd\uff0c\u800c\u662f\u5728\u65bc\u5b83\u8b93\u4f60\u7121\u75db\u5c31\u958b\u59cb\u5beb\u7b26\u5408 HTTP caching \u6a19\u6e96\u5354\u5b9a\u7684\u7a0b\u5f0f\uff0c\u8b93\u4f60\u4e4b\u5f8c\u6709\u6d41\u91cf\u9700\u6c42\u6642\uff0c\u53ef\u4ee5\u5f88\u5f48\u6027\u5730\u8f49\u63db\u5230\u771f\u6b63\u7684 HTTP caching \u4f3a\u670d\u5668\u4e0a\uff0c\u4f8b\u5982 <a href=\"http:\/\/www.varnish-cache.org\/\">Varnish<\/a>\u3002\u8a73\u60c5\u8acb\u53c3\u8003<a href=\"http:\/\/rtomayko.github.com\/rack-cache\/faq\">Rack-cache FAQ<\/a>\u3002<\/p>\n<h2>Mountable Engines<\/h2>\n<p>Engine \u88ab\u6539\u7684\u66f4\u70ba\u7368\u7acb\uff0c\u53ef\u4ee5\u64c1\u6709\u7368\u7acb\u7684 routes \u548c namespace\u3002\u8acb\u53c3\u8003 <a href=\"https:\/\/github.com\/rails\/rails\/blob\/master\/railties\/lib\/rails\/engine.rb\">API \u6587\u4ef6<\/a>\uff0c\u6216\u662f\u9019\u7bc7\u7c21\u4ecb <a href=\"http:\/\/www.builtfromsource.com\/2010\/12\/13\/mountable-engines-in-rails-3-1-beta-getting-started\/\">Mountable engines in Rails 3.1 beta: getting started<\/a><\/p>\n<h2>ActiveRecord\/ActiveModel \u76f8\u95dc<\/h2>\n<li>\u63a1\u7528 SQL <a href=\"http:\/\/dev.mysql.com\/tech-resources\/articles\/4.1\/prepared-statements.html\">Prepared statements<\/a> \u4e86\uff0c\u589e\u52a0\u8907\u96dc SQL query \u7684\u6548\u80fd\u3002<\/li>\n<li>Mass assignment \u53ef\u4ee5\u8a2d\u5b9a attr_proected \u548c attr_accessible \u56e0\u61c9\u4e0d\u540c\u89d2\u8272\u800c\u6709\u4e0d\u540c\u9650\u5236\uff0c\u633a\u4e0d\u932f\u5be6\u7528\u7684\u529f\u80fd\u3002\u8a73\u898b  <a href=\"https:\/\/github.com\/rails\/rails\/blob\/master\/activemodel\/lib\/active_model\/mass_assignment_security.rb\">API \u6587\u4ef6<\/a>\u3002\n<li><a href=\"http:\/\/edgerails.info\/articles\/what-s-new-in-edge-rails\/2011\/03\/09\/custom-activerecord-attribute-serialization\/index.html\">Custom ActiveRecord Attribute Serialization<\/a>: \u652f\u63f4\u4e0d\u540c\u7684 Serialize \u65b9\u5f0f<\/li>\n<li><a href=\"http:\/\/edgerails.info\/articles\/what-s-new-in-edge-rails\/2011\/04\/21\/activerecord-identity-map\/index.html\">ActiveRecord Identity Map<\/a>\uff1a\u652f\u63f4 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Identity_map\">Identity Map<\/a>\uff0c\u76f8\u540c\u7684\u8cc7\u6599\u5eab\u8cc7\u6599\u4e5f\u4e00\u5b9a\u6703\u662f\u540c\u4e00\u500b\u7269\u4ef6\uff0c\u53ef\u4ee5\u7bc0\u7701\u8cc7\u6e90\u589e\u52a0\u4e00\u81f4\u6027\u3002\u4e0d\u904e\u56e0\u70ba\u884c\u70ba\u6709\u4e9b\u6539\u8b8a\uff0c\u6240\u4ee5\u9810\u8a2d\u662f\u95dc\u7684\uff0c\u8a73\u898b<br \/>\n<a href=\"https:\/\/github.com\/rails\/rails\/blob\/master\/activerecord\/lib\/active_record\/identity_map.rb\">API \u6587\u4ef6<\/a>\u3002<\/li>\n<li><a href=\"http:\/\/bcardarella.com\/post\/4668842452\/exploring-rails-3-1-activemodel-securepassword\">ActiveModel::SecurePassword<\/a>\uff0c\u53ef\u4ee5\u5b58\u5bc6\u78bc\uff0c \u4e0d\u904e\u6211\u89ba\u5f97\u6c92\u5565\u5be6\u7528\uff0c\u5927\u5bb6\u90fd\u88dd\u8a8d\u8b49\u76f8\u95dc\u7684 Gem \u4f86\u7528<\/li>\n<li>\u65b0\u7684 update_column \u65b9\u6cd5\uff0c\u9019\u6703\u5b8c\u5168\u5ffd\u7565 validations \u548c callbacks\u3002\u672c\u4f86\u7684 update_attribute \u96d6\u7136\u6703\u5ffd\u7565 validations\uff0c\u4f46\u662f\u6703\u8dd1 callbacks\u3002<\/li>\n<\/ul>\n<h2>ActionPack \u76f8\u95dc<\/h2>\n<ul>\n<li><a href=\"http:\/\/edgerails.info\/articles\/what-s-new-in-edge-rails\/2011\/01\/12\/template-inheritance\/index.html\">Template Inheritance<\/a>: Controller \u7e7c\u627f\u4e5f\u53ef\u4ee5\u8b93 Template \u4e5f\u7e7c\u627f<\/li>\n<li><a href=\"http:\/\/www.simonecarletti.com\/blog\/2011\/05\/configuring-rails-3-https-ssl\/\">force_ssl<\/a>: \u5167\u5efa\u4e86 <a href=\"https:\/\/rubygems.org\/gems\/rack-ssl\">Rack::SSL<\/a>  middleware \u53ef\u4ee5\u9650\u5236\u6574\u7ad9\u5fc5\u9808\u662f SSL \u5b58\u53d6\u3002\u6216\u662f\u5728 Controller \u4e2d\u7528 force_ssl \u9019\u500b\u65b9\u6cd5\u9650\u5b9a\u90e8\u5206 Actions \u8981\u7528 SSL (\u4e4b\u524d\u5927\u5bb6\u662f\u88dd <a href=\"https:\/\/github.com\/rails\/ssl_requirement\">ssl_requirement<\/a> \u9019\u500b plugin\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/rails\/rails\/blob\/master\/actionpack\/lib\/action_controller\/metal\/params_wrapper.rb\">ActionController::ParamsWrapper<\/a>: \u9019\u529f\u80fd\u8b93 POST \u53ef\u4ee5\u76f4\u63a5\u50b3 JSON \u548c XML \u8cc7\u6599\u4e26\u81ea\u52d5\u8f49\u6210 params hash \u8b93\u4f60\u4f7f\u7528\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5beb\u51fa\u4e00\u81f4\u7684 JSON\/XML API \u4ecb\u9762\uff1a\u5410\u8cc7\u6599\u548c\u63a5\u6536\u8cc7\u6599\u90fd\u7528 JSON\/XML\u3002\u9019\u529f\u80fd\u9810\u8a2d\u662f\u95dc\u7684\u3002<\/li>\n<\/ul>\n<h2>ActionView \u76f8\u95dc<\/h2>\n<ul>\n<li>\nform_for \u7684 :method \u53c3\u6578\u53ef\u4ee5\u4e0d\u5fc5\u653e :html \u88e1\u9762\uff1a\u4e5f\u5c31\u662f <code>form_for(@post, :html => { :method => :delete })<\/code> \u8b8a\u6210 <code>form_for(@post, :method => :delete)<\/code>\n<\/li>\n<li>\n\u5982\u679c form \u88e1\u9762\u6709\u7528 file_field \u6a94\u6848\u4e0a\u50b3\uff0cRails \u6703\u81ea\u52d5\u5e6b form_for \u52a0\u4e0a <code> :multipart => true <\/code>\u53c3\u6578\uff0c\u9019\u6a23\u5c31\u4e0d\u6015\u5fd8\u8a18\u5566\uff0c\u8d85\u68d2\u3002\n<\/li>\n<li>\u65b0\u589e j() helper \u662f escape_javascript() \u7684\u5225\u540d<\/li>\n<li>\u65b0\u589e data \u53c3\u6578\u65b9\u4fbf\u8a2d\u5b9a HTML5 data-* \u5c6c\u6027\uff1a<br \/>\n<code>tag(\"div\", :data => {:name => 'Stephen', :city_state => %w(Chicago IL)})<\/code> \u6703\u8f38\u51fa <code>&lt;div data-name=\"Stephen\" data-city-state=\"[&quot;Chicago&quot;,&quot;IL&quot;]\" \/><\/code>\n<\/li>\n<\/ul>\n<h2>\u5176\u4ed6<\/h2>\n<ul>\n<li>\u5728 rails console \u4e2d\uff0c\u6539\u6210\u9810\u8a2d\u6703\u986f\u793a SQL query log\u3002<\/li>\n<li><a href=\"http:\/\/www.techbang.com.tw\/posts\/5803-today-google-doodle-css-sprites-principle\">CSS Sprites<\/a>: DHH \u53bb\u5e74 RailsConf \u8b1b\u904e\u8981\u6709\uff0c\u5f88\u62b1\u6b49\u9019\u6b21 3.1 \u6c92\u6709\u5594!! \u9019\u5f35\u7968\u9084\u6c92\u514c\u73fe\u3002<\/li>\n<\/ul>\n<h2>Rails 3.2 ?<\/h2>\n<p>\u5c55\u671b\u672a\u4f86\uff0c\u6211\u60f3 Rails \u6709\u5169\u5927\u958b\u767c\u91cd\u9ede\u65b9\u5411\uff1a<\/p>\n<h3>\u652f\u63f4 Rich clients \u7684 API \u4ecb\u9762<\/h3>\n<p><a href=\"https:\/\/twitter.com\/#!\/dhh\">@DHH<\/a> \u7684 37Signals \u7528\u4e86 <a href=\"http:\/\/documentcloud.github.com\/backbone\/\">backbone.js<\/a> \u4f86\u505a Basecamp mobile \u7248\u3002\u800c <a href=\"https:\/\/twitter.com\/#!\/wycats\">@wycats<\/a> (Rails3 \u67b6\u69cb\u5e2b) \u52a0\u5165\u4e86 <a href=\"http:\/\/www.sproutcore.com\/\">SproutCore<\/a> \u5718\u968a\uff0c\u4eca\u5e74\u4ed6\u5728 RailsConf \u7684\u6f14\u8b1b <a href=\"http:\/\/trevmex.com\/post\/5639010531\/building-rails-apps-for-the-rich-client\">Building Rails Apps for the Rich Client<\/a> \u5c31\u5728\u7814\u7a76\u4ed6\u5011\u5982\u4f55\u5728 Rails \u4e0a\u8a2d\u8a08 API \u642d\u914d SproutCore\u3002<\/p>\n<p>\u679c\u7136\uff0c\u9019\u4e00\u7bc7 Rails core team \u6210\u54e1\u7684<br \/>\n<a href=\"http:\/\/lindsaar.net\/a-new-world-of-resources\">A New World of Resources<\/a> \u900f\u6f0f\u4e86\u4ed6\u5011\u6253\u7b97\u5f9e\u4e4f\u4eba\u554f\u6d25\u7684 ActiveResource \u4e0b\u624b\u3002\u770b\u4f86\u8a2d\u8a08\u51fa\u4e00\u5957\u7d66 Rich clients (\u4f8b\u5982 JavaScript MVC \u6846\u67b6) \u7684 API Convention \u6163\u4f8b\uff0c\u6703\u662f\u4e0b\u4e00\u500b\u5927\u76ee\u6a19\u3002<\/p>\n<h3>Middleware \u5927\u6539\u9020<\/h3>\n<p>\u770b\u5b8c <a href=\"http:\/\/www.youtube.com\/watch?v=kWOAHIpmLAI&#038;list=PL379EA9290474C86C\">RailsConf 2011: Aaron Patterson<\/a> \u7684\u6f14\u8b1b\uff0c\u4f60\u6703\u767c\u73fe\u8981\u505a HTTP streaming \u771f\u7684\u5f88\u96e3\uff0c\u6240\u6709 Rack Middleware \u90fd\u8981\u91cd\u65b0\u770b\u904e\uff0c\u56e0\u6b64 <a href=\"https:\/\/twitter.com\/#!\/tenderlove\">@tenderlov<\/a>e \u63d0\u51fa\u4e86\u65b0\u7684 Rack \u4ecb\u9762\u8a08\u756b\u60f3\u8981\u6539\u5beb\u3002\u53e6\u5916\u5c31\u662f\u4ed6\u767c\u73fe Rails 2 \u5230 Rails 3 \u7684 RPS \u6548\u80fd\u8b8a\u5dee\u7684\u4e3b\u56e0\u662f\u592a\u591a Middleware \u9020\u6210 call stack \u592a\u6df1\u4e86\u3002Rails 2.3 \u6709 51 deep\u3001Rails 3.0 \u6709 60 deep\uff0c\u5230\u4e86 3.1 \u9054\u5230 67 deep\u3002\u9019\u4e5f\u662f\u4ed6\u60f3\u8981\u6539\u9032\u7684\u5730\u65b9\u3002\u589e\u52a0\u6548\u80fd\u3001\u7bc0\u7701\u8a18\u61b6\u9ad4\u4f7f\u7528\u91cf\u662f Rails 3.2 \u7684\u4e00\u5927\u76ee\u6a19\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update(2011\/8\/31): \u6b63\u5f0f\u91cb\u51fa! Rails 3.1.0 has been released! &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ihower.tw\/blog\/5611-rails-3-1-rc-%e7%99%bc%e4%bd%88-%e9%87%8d%e9%bb%9e%e5%b0%8e%e8%a6%bd\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Rails 3.1 RC \u767c\u4f48: \u91cd\u9ede\u5c0e\u89bd\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[53,31],"tags":[],"class_list":["post-5611","post","type-post","status-publish","format-standard","hentry","category-rails","category-ruby","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q6tG-1sv","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/comments?post=5611"}],"version-history":[{"count":81,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5611\/revisions"}],"predecessor-version":[{"id":6051,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5611\/revisions\/6051"}],"wp:attachment":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/media?parent=5611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/categories?post=5611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/tags?post=5611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}