I've just tried the following on Edge;
<%= render(:partial => 'example', :collection => %w(rails-doc is
cool), :locals => {:example_counter => 5}) %>
in the 'example' partial;
<p>Element: <%= example %> (index: <%= example_counter %>)</p>
output;
Element: rails-doc (index: 0)
Element: is (index: 1)
Element: cool (index: 2)
so not only has the behaviour changed (counter starting from 0, not
1), it's still not allowing it to be overridden.
How did you check it was working, Frederick?
@Koz - I'll try and write a patch/test which allows the internal
counter to be overridden.
> On 3 Aug 2008, at 23:35, MarkMT wrote:
>
> > Unfortunately, the ability to do this appears to have disappeared in
> > 2.1, and leaves me resorting to some pretty nasty stuff to achieve the
> > same effect. It appears that regardless of the value passed to the
> > local variable, when thepartialis invoked on an object, internally