1. 25 4月, 2012 1 次提交
    • J
      Remove default match without specified method · 56cdc81c
      Jose and Yehuda 提交于
      In the current router DSL, using the +match+ DSL
      method will match all verbs for the path to the
      specified endpoint.
      
      In the vast majority of cases, people are
      currently using +match+ when they actually mean
      +get+. This introduces security implications.
      
      This commit disallows calling +match+ without
      an HTTP verb constraint by default. To explicitly
      match all verbs, this commit also adds a
      :via => :all option to +match+.
      
      Closes #5964
      56cdc81c
  2. 29 3月, 2012 1 次提交
  3. 27 3月, 2012 1 次提交
    • P
      If partial is rendered in controller, grab format from template · 67b2404c
      Piotr Sarnacki 提交于
      Previously `rendered_format` was set only based on mime types
      passed in Accept header, which was wrong if first type from
      Accept was different than rendered partial. The fix is to simply
      move setting rendered_format to the place where template
      is available and grab format from the template. If it fails
      we can fallback to formats passed by Accept header.
      67b2404c
  4. 17 3月, 2012 1 次提交
  5. 02 3月, 2012 1 次提交
  6. 17 2月, 2012 1 次提交
  7. 19 1月, 2012 1 次提交
  8. 18 1月, 2012 1 次提交
    • C
      Refactor FormBuilder arguments and default config · 56089ca9
      Carlos Antonio da Silva 提交于
      * Do not reopen AV::Base to define default form builder
        Inside the load hook we are already in AV::Base context.
      
      * Do not pass the given block to the form builder
        The block is evaluated in fields_for context using capture, with the
        builder as argument. This means we do not need to give the block to the
        FormBuilder itself.
      56089ca9
  9. 17 1月, 2012 2 次提交
  10. 06 1月, 2012 1 次提交
  11. 20 12月, 2011 2 次提交
  12. 02 12月, 2011 3 次提交
  13. 31 10月, 2011 1 次提交
  14. 22 9月, 2011 2 次提交
  15. 05 9月, 2011 1 次提交
  16. 17 8月, 2011 1 次提交
  17. 24 7月, 2011 2 次提交
  18. 25 5月, 2011 1 次提交
  19. 13 4月, 2011 1 次提交
  20. 09 2月, 2011 1 次提交
  21. 04 10月, 2010 1 次提交
  22. 29 9月, 2010 3 次提交
  23. 19 9月, 2010 1 次提交
  24. 05 9月, 2010 1 次提交
  25. 17 8月, 2010 1 次提交
  26. 14 8月, 2010 2 次提交
  27. 20 6月, 2010 1 次提交
  28. 15 6月, 2010 1 次提交
  29. 17 5月, 2010 3 次提交
    • W
      Revert "Moved encoding work in progress to a feature branch." · 80b60671
      wycats 提交于
      This reverts commit ade756fe.
      80b60671
    • J
      Moved encoding work in progress to a feature branch. · ade756fe
      Jeremy Kemper 提交于
      This reverts commits af0d1a88 and 64d109e3.
      ade756fe
    • W
      Significantly improved internal encoding heuristics and support. · 64d109e3
      wycats 提交于
      * Default Encoding.default_internal to UTF-8
      * Eliminated the use of file-wide magic comments to coerce code evaluated inside the file
      * Read templates as BINARY, use default_external or template-wide magic comments
        inside the Template to set the initial encoding
        * This means that template handlers in Ruby 1.9 will receive Strings encoded
          in default_internal (UTF-8 by default)
      * Create a better Exception for encoding issues, and use it when the template
        source has bytes that are not compatible with the specified encoding
      * Allow template handlers to opt-into handling BINARY. If they do so, they
        need to do some of their own manual encoding work
      * Added a "Configuration Gotchas" section to the intro Rails Guide instructing
        users to use UTF-8 for everything
      * Use config.encoding= in Ruby 1.8, and raise if a value that is an invalid
        $KCODE value is used
      
      Also:
      * Fixed a few tests that were assert() rather than assert_equal() and
        were caught by Minitest requiring a String for the message
      * Fixed a test where an assert_select was misformed, also caught by
        Minitest being more restrictive
      * Fixed a test where a Rack response was returning a String rather
        than an Enumerable
      64d109e3