If you pass the model directly to render , it will try to make it partial for it.
<%= render @thing %>
The same as.
<%= render :partial => 'things/thing', :object => @thing %>
If you pass an array of models ...
<%= render @things %>
It will be partial to _thing for everyone, as if you did it.
<%= render :partial => 'things/thing', :collection => @things %>
Note: this requires Rails 2.3. If you have earlier versions of Rails, you need to use the: partial option to do the same.
<%= render :partial => @thing %>
ryanb source share