1. 18 3月, 2017 1 次提交
    • 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
  2. 17 3月, 2017 9 次提交
  3. 16 3月, 2017 11 次提交
  4. 15 3月, 2017 15 次提交
  5. 14 3月, 2017 4 次提交