1. 04 7月, 2012 8 次提交
  2. 23 6月, 2012 1 次提交
  3. 22 6月, 2012 1 次提交
  4. 18 5月, 2012 2 次提交
  5. 15 5月, 2012 1 次提交
  6. 05 5月, 2012 3 次提交
  7. 30 4月, 2012 1 次提交
  8. 29 4月, 2012 2 次提交
  9. 28 4月, 2012 1 次提交
  10. 27 4月, 2012 1 次提交
  11. 13 4月, 2012 1 次提交
  12. 21 3月, 2012 1 次提交
  13. 15 3月, 2012 1 次提交
  14. 11 3月, 2012 1 次提交
    • G
      assert_template matches against Regexp · b142bd84
      Grant Hutchins 提交于
      This allows for more strict template assertions,
      while maintaining backward compatibility.
      
      For example, if you use assert_template("foo/bar")
      and "foo/bar/baz" was rendered, the test passes.
      
      But if you use assert_template(%r{\Afoo/bar\Z}),
      you will catch that a different template was
      rendered.
      
      Also, if you passed an unsupported argument to
      assert_template() in the past, it would silently
      succeed. Now it raises an ArgumentError.
      b142bd84
  15. 06 3月, 2012 1 次提交
  16. 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
  17. 31 1月, 2012 1 次提交
  18. 10 1月, 2012 3 次提交
  19. 07 1月, 2012 6 次提交
  20. 06 1月, 2012 3 次提交