This project is archived and is in readonly mode.
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
-
Repository August 22nd, 2008 @ 06:19 PM
- State changed from new to resolved
(from [9a5ffaa01e5a13d9ec2209a1a937d46fc12615a1]) Ensure :partial => @collection and :collection => @collection behaves same. [#884 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
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
Tags
Referenced by
- 884 Partial should behave the same without :collection option (from [9a5ffaa01e5a13d9ec2209a1a937d46fc12615a1]) Ensure ...