1. 05 3月, 2014 1 次提交
    • P
      Do note remove `Content-Type` when `render :body` · ed88a601
      Prem Sichanugrist 提交于
      `render :body` should just not set the `Content-Type` header. By
      removing the header, it breaks the compatibility with other parts.
      
      After this commit, `render :body` will returns `text/html` content type,
      sets by default from `ActionDispatch::Response`, and it will preserve
      the overridden content type if you override it.
      
      Fixes #14197, #14238
      
      This partially reverts commit 30473768.
      ed88a601
  2. 19 2月, 2014 2 次提交
    • P
      Add `#no_content_type` attribute to `AD::Response` · 30473768
      Prem Sichanugrist 提交于
      Setting this attribute to `true` will remove the content type header
      from the request. This is use in `render :body` feature.
      30473768
    • P
      Introduce `render :body` for render raw content · 103e18c8
      Prem Sichanugrist 提交于
      This is an option for sending a raw content back to browser. Note that
      this rendering option will unset the default content type and does not
      include "Content-Type" header back in the response.
      
      You should only use this option if you are expecting the "Content-Type"
      header to not be set. More information on "Content-Type" header can be
      found on RFC 2616, section 7.2.1.
      
      Please see #12374 for more detail.
      103e18c8
  3. 09 2月, 2014 1 次提交
  4. 01 2月, 2014 1 次提交
  5. 03 12月, 2013 1 次提交
  6. 01 9月, 2013 1 次提交
  7. 16 8月, 2013 1 次提交
  8. 29 6月, 2013 1 次提交
  9. 31 5月, 2013 1 次提交
    • S
      Add propery docs to ActionDispatch::Response [ci skip] · 8603bc06
      Steve Klabnik 提交于
      After some discussion on Twitter with @skud, the documentation on ActionDispatch::Response is
      a bit sparse. This class is useful when you're writing tests, as often you want to assert various
      things about the response that's coming back. Better docs would make this easier for people new
      to testing in Rails.
      
      I only added some descriptions for various properties that were defined, and mostly just a sentence
      or two. Most of these things are familliar if you're working with HTTP, but some words is better
      than no words at all.
      
      Hopefully further commits will fix up things that aren't just documentation.
      8603bc06
  10. 22 4月, 2013 1 次提交
  11. 16 2月, 2013 1 次提交
  12. 14 2月, 2013 1 次提交
  13. 27 1月, 2013 1 次提交
  14. 21 1月, 2013 1 次提交
  15. 16 1月, 2013 3 次提交
  16. 31 12月, 2012 1 次提交
  17. 05 12月, 2012 1 次提交
  18. 14 8月, 2012 1 次提交
  19. 09 8月, 2012 1 次提交
  20. 03 8月, 2012 2 次提交
  21. 30 7月, 2012 5 次提交
  22. 28 7月, 2012 1 次提交
  23. 13 4月, 2012 1 次提交
  24. 14 3月, 2012 1 次提交
  25. 21 12月, 2011 1 次提交
  26. 13 12月, 2011 1 次提交
  27. 08 12月, 2011 1 次提交
  28. 07 12月, 2011 1 次提交
  29. 25 5月, 2011 1 次提交
  30. 23 5月, 2011 1 次提交
  31. 10 5月, 2011 1 次提交
  32. 21 4月, 2011 1 次提交