With rails 2.2.2 this code :
<%= render :partial => 'order', :collections => @orders %>
with partial _order.html.erb :
<% div_for order do %>
<%= order.title %><br/>
<% end %>
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
while this peace of code work fine :
<% @orders.each do |order| %>
<%= render :partial => 'order', :locals => { :order => order } %>
<% end %>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---