1. 12 12月, 2012 1 次提交
    • M
      Fix rewinding in ActionDispatch::Request#raw_post · 991601ff
      Matt Venables 提交于
      If env['RAW_POST_DATA'] is nil, #raw_post will attempt to set it to
      the result of #body (which will return env['rack.input'] if
      env['RAW_POST_DATA'] is nil). #raw_post will then attempt to rewind
      the result of another call to #body. Since env['RAW_POST_DATA'] has
      already been set, the result of #body is not env['rack.input'] anymore.
      This causes env['rack.input'] to never be rewound.
      991601ff
  2. 20 11月, 2012 3 次提交
  3. 31 10月, 2012 2 次提交
  4. 26 10月, 2012 2 次提交
  5. 15 9月, 2012 1 次提交
  6. 24 7月, 2012 1 次提交
  7. 21 5月, 2012 1 次提交
    • A
      Raise ActionController::BadRequest for malformed parameter hashes. · 66eb3f02
      Andrew White 提交于
      Currently Rack raises a TypeError when it encounters a malformed or
      ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this
      through to the application this commit captures the exception and
      re-raises it using a new ActionController::BadRequest exception.
      
      The new ActionController::BadRequest exception returns a 400 error
      instead of the 500 error that would've been returned by the original
      TypeError. This allows exception notification libraries to ignore
      these errors if so desired.
      
      Closes #3051
      66eb3f02
  8. 25 4月, 2012 1 次提交
  9. 23 2月, 2012 1 次提交
    • D
      Add config.default_method_for_update to support PATCH · 002713c6
      David Lee 提交于
      PATCH is the correct HTML verb to map to the #update action. The
      semantics for PATCH allows for partial updates, whereas PUT requires a
      complete replacement.
      
      Changes:
      * adds config.default_method_for_update you can set to :patch
      * optionally use PATCH instead of PUT in resource routes and forms
      * adds the #patch verb to routes to detect PATCH requests
      * adds #patch? to Request
      * changes documentation and comments to indicate support for PATCH
      
      This change maintains complete backwards compatibility by keeping :put
      as the default for config.default_method_for_update.
      002713c6
  10. 08 2月, 2012 3 次提交
  11. 21 12月, 2011 1 次提交
  12. 15 11月, 2011 1 次提交
  13. 14 11月, 2011 1 次提交
  14. 04 10月, 2011 1 次提交
  15. 20 7月, 2011 1 次提交
  16. 07 5月, 2011 1 次提交
  17. 05 5月, 2011 1 次提交
  18. 03 5月, 2011 2 次提交
  19. 11 3月, 2011 1 次提交
  20. 08 2月, 2011 1 次提交
  21. 30 11月, 2010 1 次提交
    • J
      The redirect routing method now allows for a hash of options which only... · 0bda6f1e
      Josh Kalderimis 提交于
      The redirect routing method now allows for a hash of options which only changes the relevant parts of the url, or an object which responds to call can be supplied so common redirect rules can be easily reused. This commit includes a change where url generation from parts has been moved to AD::Http::URL as a class method.
      0bda6f1e
  22. 24 11月, 2010 1 次提交
  23. 23 11月, 2010 1 次提交
  24. 16 11月, 2010 1 次提交
  25. 12 10月, 2010 1 次提交
  26. 29 9月, 2010 1 次提交
  27. 27 9月, 2010 1 次提交
  28. 10 9月, 2010 1 次提交
  29. 03 9月, 2010 1 次提交
  30. 02 9月, 2010 1 次提交
  31. 20 8月, 2010 1 次提交
  32. 14 8月, 2010 2 次提交