Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Partial should behave the same without :collection option

#884

There are a couple differences when rendering a partial with an array instead of passing the collection option.

  • empty array does not return nil
  • extra options are not passed (such as the :spacer_template)

Attached is a patch which fixes these to behave more like :collection.

Reported by Ryan Bates · August 22nd, 2008 @ 04:01 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Ryan Bates
  2. Repository
    Repository
    • State changed from new to resolved

    (from [9a5ffaa01e5a13d9ec2209a1a937d46fc12615a1]) Ensure :partial => @collection and :collection => @collection behaves same. [#884 Partial should behave the same without :collection option state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    August 22nd, 2008 @ 06:19 PM