diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-07-29 21:42:42 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-07-29 21:43:07 -0700 |
commit | 0899be5798d20e3e886e5f741d3e4b1bf43afedd (patch) | |
tree | 28edecab8bd443abd86cf338651af726f1bafc57 /actionpack | |
parent | fa3c4ea6d0dee5995d0ac56699540eb9a3149224 (diff) | |
download | rails-0899be5798d20e3e886e5f741d3e4b1bf43afedd.tar.gz rails-0899be5798d20e3e886e5f741d3e4b1bf43afedd.tar.bz2 rails-0899be5798d20e3e886e5f741d3e4b1bf43afedd.zip |
updated changelog
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index ec85f67e58..d5326e3d0b 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,21 @@ ## Rails 4.0.0 (unreleased) ## +* Added ActionController::Live. Mix it in to your controller and you can + stream data to the client live. For example: + + class FooController < ActionController::Base + include ActionController::Live + + def index + 100.times { + # Client will see this as it's written + response.stream.write "hello world\n" + sleep 1 + } + response.stream.close + end + end + * Remove ActionDispatch::Head middleware in favor of Rack::Head. *Santiago Pastorino* * Deprecate `:confirm` in favor of `:data => { :confirm => "Text" }` option for `button_to`, `button_tag`, `image_submit_tag`, `link_to` and `submit_tag` helpers. |