Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 6, 2011
  1. @josevalim

    Deprecate stream at the class level.

    josevalim authored
    This is because only template rendering works with streaming.
    Setting it at the class level was also changing the behavior
    of JSON and XML responses, closes #1337.
Commits on Jun 6, 2011
  1. @guilleiguaran @fxn

    Remove trailing white-spaces

    guilleiguaran authored fxn committed
Commits on May 2, 2011
  1. @josevalim

    Update CHANGELOG.

    josevalim authored
Commits on May 1, 2011
  1. @fxn
  2. @josevalim

    Streaming docs.

    josevalim authored
  3. @josevalim

    Introduce view renderer.

    josevalim authored
Commits on Apr 19, 2011
  1. @josevalim

    Do not stream on HTTP/1.0.

    josevalim authored
Commits on Apr 18, 2011
  1. @josevalim

    Body... wanna *stream* my body? Body... such a thrill my body!

    josevalim authored
    Added stream as class level method to make it explicit when to stream.
    Render also accepts :stream as option.
  2. @josevalim

    Rename it to DataStreaming.

    josevalim authored
Commits on Oct 4, 2010
  1. `render :text => proc { ... }` is no longer supported.

    John Firebaugh authored
Commits on Sep 6, 2010
  1. @carlosantoniodasilva @josevalim

    Cleanup deprecation warnings in Action Controller

    carlosantoniodasilva authored josevalim committed
    Signed-off-by: José Valim <>
Commits on Sep 2, 2010
  1. @josevalim

    Revert "Setup explicit requires for files with exceptions. Removed th…

    josevalim authored
    …em from autoloading."
    Booting a new Rails application does not work after this commit [#5359 state:open]
    This reverts commit 38a421b.
  2. @lukaszx0 @josevalim

    Setup explicit requires for files with exceptions. Removed them from …

    lukaszx0 authored josevalim committed
    Signed-off-by: José Valim <>
Commits on Jul 20, 2010
  1. @josevalim
Commits on Feb 24, 2010
  1. Makes send_file work again by deferring to Rack::Sendfile.

    Carlhuda authored
      * Add the Rack::Sendfile middleware
      * Make the header to use configurable via config.action_dispatch.x_sendfile_header (default to "X-Sendfile"). 
      * Add Railties tests to confirm that these work
      * Remove the :stream, :buffer_size, and :x_senfile default options to send_file
      * Change the log subscriber to always say "Sent file"
      * Add deprecation warnings for options that are now no-ops
    Note that servers can configure this by setting X-Sendfile-Type. Hosting companies and those creating packages of servers specially designed for Rails applications are encouraged to specify this header so that this can work transparently.
Commits on Feb 23, 2010
  1. Fix streaming by having it create a File object, which can be handled…

    Carlhuda authored
    … by Rack servers as appropriate
Commits on Jan 13, 2010
  1. @josevalim
Commits on Dec 21, 2009
  1. @dhh
Commits on Nov 9, 2009
  1. @fxn
Commits on Aug 11, 2009
  1. @wycats

    Got overhead down from 127 to 85. All tests pass:

    wycats authored
      * Tentatively replaced HeaderHash with SimpleHeaderHash, which does not preserve
        case but does handle converting Arrays to Strings in to_hash. This requires
        further discussion.
      * Moved default_charset to ActionDispatch::Response to avoid having to hop over
        to ActionController. Ideally, this would be a constant on AD::Response, but
        some tests expect to be able to change it dynamically and I didn't want to change
        them yet.
      * Completely override #initialize from Rack::Response. Previously, it was creating
        a HeaderHash, and then we were creating an entirely new one. There is no way to
        call super without incurring the overhead of creating a HeaderHash.
      * Override #write from Rack::Response. Its implementation tracks Content-Length,
        and doing so adds additional overhead that could be mooted if other middleware
        changes the body. It is more efficiently done at the top-level server.
      * Change sending_file to an instance_variable instead of header inspection. In
        general, if a state is important, it should be set as a property of the response
        not reconstructed later.
      * Set the Etag to @body instead of .body. AS::Cache.expand_cache_key handles
        Arrays fine, and it's more efficient to let it handle the body parts, since
        it is not forced to create a joined String.
      * If we detect the default cache control case, just set it, rather than setting
        the constituent parts and then running the normal (expensive) code to generate
        the string.
Commits on Aug 7, 2009
  1. @josevalim
Commits on Aug 6, 2009
  1. @wycats

    Rename /base to /metal and make base.rb and metal.rb top-level to ref…

    wycats authored
    …lect their module locations
Something went wrong with that request. Please try again.