最佳答案
<%= render :partial => 'partial/path', :locals => {:xyz => 'abc'} %>
vs
<%= render :partial => 'partial/path', :object => @some_object %>
I think the first one make a local variable named xyz
available in the partial and the second one makes a local variable named object
available in the partial. So what is the difference? (Besides locals
allows more than one variable)