#67 new
Rick DeNatale

P 326 - What about render :partial :object

Reported by Rick DeNatale | December 28th, 2007 @ 07:52 AM | in Second Edition

In the section Sharing Collection Partials you recommend using:

render :partial => 'entry', :locals => {:entry => @ entry}

however the time honored :object option to the render method does the same thing more succinctly:

render :partial => 'entry' :object => @entry

The :object option is the single object equivalent to the :collection option.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

People watching this ticket