Render partial collection locals

when i use a partial render with a collection and a hash of locals, i
don’t get the locals.
<%= render :partial => ‘/users/user’, :collection => @users, :locals
=> {:test_value => true} %>
isn’t it possible to use both collection and locals with a render?

Jean-sébastien Jney wrote:

when i use a partial render with a collection and a hash of locals, i
don’t get the locals.
<%= render :partial => ‘/users/user’, :collection => @users, :locals
=> {:test_value => true} %>
isn’t it possible to use both collection and locals with a render?

This works fine for me. When you access the locals, you’re just using
eg

<%= test_value %>

rather than

<%= locals[:test_value] %>

right?

Max W. wrote:

Jean-sébastien Jney wrote:

when i use a partial render with a collection and a hash of locals, i
don’t get the locals.
<%= render :partial => ‘/users/user’, :collection => @users, :locals
=> {:test_value => true} %>
isn’t it possible to use both collection and locals with a render?

This works fine for me. When you access the locals, you’re just using
eg

<%= test_value %>

rather than

<%= locals[:test_value] %>

right?

My mistake, i’m talking out my ass, sorry (not had my morning coffee
yet)