1. 03 12月, 2013 1 次提交
  2. 03 11月, 2013 1 次提交
  3. 01 11月, 2013 1 次提交
  4. 22 4月, 2013 1 次提交
  5. 22 3月, 2013 1 次提交
  6. 11 3月, 2013 1 次提交
    • S
      Change ActionController::Parameters#require behavior when value is empty · b3f894c5
      Sebastian Sogamoso 提交于
      When the value for the required key is empty an ActionController::ParameterMissing is raised which gets caught by ActionController::Base and turned into a 400 Bad Request reply with a message in the body saying the key is missing, which is misleading.
      
      With these changes, ActionController::EmptyParameter will be raised which ActionController::Base will catch and turn into a 400 Bad Request reply with a message in the body saying the key value is empty.
      b3f894c5
  7. 16 1月, 2013 1 次提交
  8. 04 1月, 2013 1 次提交
  9. 02 1月, 2013 1 次提交
  10. 01 1月, 2013 2 次提交
  11. 18 9月, 2012 1 次提交
  12. 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
  13. 12 5月, 2012 1 次提交
  14. 06 5月, 2012 1 次提交
  15. 02 12月, 2011 2 次提交