This project is archived and is in readonly mode.

#884 ✓resolved
Ryan Bates

Partial should behave the same without :collection option

Reported by Ryan Bates | August 22nd, 2008 @ 04:01 PM | in 2.x

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages