1. 03 4月, 2018 1 次提交
  2. 08 3月, 2018 2 次提交
  3. 07 3月, 2018 1 次提交
  4. 23 11月, 2017 1 次提交
  5. 26 8月, 2017 1 次提交
  6. 29 7月, 2017 1 次提交
  7. 02 7月, 2017 1 次提交
  8. 01 7月, 2017 1 次提交
  9. 19 4月, 2017 1 次提交
  10. 18 3月, 2017 2 次提交
    • A
      Always use original url_for when generating direct routes · fd16e1a9
      Andrew White 提交于
      Action View overrides `url_for` in the view context to render paths by
      default when using `url_for` and this means that direct route helpers
      don't get the full url when called with the url suffix. To fix this
      always call the original `url_for`.
      fd16e1a9
    • A
      Add support for calling nested direct routes (#28462) · 35afd2c5
      Andrew White 提交于
      Not all requirements can be expressed in terms of polymorphic url
      options so add a `route_for` method that allows calling another
      direct route (or regular named route) which a set of arguments, e.g:
      
          resources :buckets
      
          direct :recordable do |recording|
            route_for(:bucket, recording.bucket)
          end
      
          direct :threadable do |threadable|
            route_for(:recordable, threadable.parent)
          end
      
      This maintains the context of the original caller, e.g.
      
          threadable_path(threadable) # => /buckets/1
          threadable_url(threadable)  # => http://example.com/buckets/1
      35afd2c5
  11. 14 3月, 2017 1 次提交
  12. 24 12月, 2016 1 次提交
  13. 07 8月, 2016 1 次提交
  14. 27 4月, 2016 1 次提交
  15. 15 2月, 2016 1 次提交
  16. 15 12月, 2015 1 次提交
  17. 07 10月, 2015 1 次提交
  18. 05 9月, 2015 1 次提交
    • B
      `url_for` does not modify polymorphic options · ee63532d
      Bernerd Schaefer 提交于
      The `url_for` methods in `actionpack` and `actionview`
      now make a copy of the provided options
      before generating polymorphic paths or URLs.
      
      The bug in the previous behavior
      is most noticeable in a case like:
      
          url_options = [:new, :post, param: 'value']
      
          if current_page?(url_options)
            css_class = "active"
          end
      
          link_to "New Post", url_options, class: css_class
      ee63532d
  19. 15 7月, 2015 1 次提交
    • P
      Make AC::Parameters not inherited from Hash · 14a3bd52
      Prem Sichanugrist 提交于
      This is another take at #14384 as we decided to wait until `master` is
      targeting Rails 5.0. This commit is implementation-complete, as it
      guarantees that all the public methods on the hash-inherited Parameters
      are still working (based on test case). We can decide to follow-up later
      if we want to remove some methods out from Parameters.
      14a3bd52
  20. 01 7月, 2015 1 次提交
    • R
      [ci skip] Improve the url_for documentation · 48dc8261
      Roque Pinel 提交于
      Clarify the `url_for` usage in mailers.
      
      Re-add the documentation about `url_for` and Route's path parameters,
      first introduced by 5c4f1859.
      This was reported on #15097 and until it is decided to deprecate it
      or not, I believe the documentation should exist.
      48dc8261
  21. 02 3月, 2015 1 次提交
  22. 25 11月, 2014 1 次提交
  23. 29 7月, 2014 1 次提交
    • A
      remove some caching · 099fd0ef
      Aaron Patterson 提交于
      this caching doesn't increase performance, but does increase complexity.
      remove it for now and find better ways to speed up this code.
      099fd0ef
  24. 18 7月, 2014 1 次提交
  25. 13 5月, 2014 2 次提交
  26. 15 11月, 2013 1 次提交
  27. 23 9月, 2013 1 次提交
    • E
      Fix link_to return value · 3189961f
      Earl J St Sauver 提交于
      The documentation is showing the link_to method as just returning
      the contents of the url_for method. It should be returning an
      "<a>" tag with the correct href set.
      3189961f
  28. 17 12月, 2012 1 次提交
  29. 01 11月, 2012 1 次提交
  30. 28 8月, 2012 2 次提交
  31. 27 7月, 2012 1 次提交
  32. 24 5月, 2012 1 次提交
    • V
      Revert "Remove blank trailing comments" · 1ad0b378
      Vijay Dev 提交于
      This reverts commit fa6d921e.
      
      Reason: Not a fan of such massive changes. We usually close such changes
      if made to Rails master as a pull request. Following the same principle
      here and reverting.
      
      [ci skip]
      1ad0b378
  33. 20 5月, 2012 1 次提交
    • H
      Remove blank trailing comments · fa6d921e
      Henrik Hodne 提交于
      For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace
      with the first match, and voilà! Note that the regex matches a little bit too
      much, so you probably want to `git add -i .` and go through every single diff
      to check if it actually should be changed.
      fa6d921e
  34. 15 5月, 2012 1 次提交
  35. 03 5月, 2012 1 次提交
  36. 09 4月, 2012 1 次提交