I’ve got a sorted array of elements. I render the whole array in one
place, but also the three first elements in another using the following
“render :partial => ‘partial’, :collection => @first_elements”
The problem is that I also need an index of every element in the array
inside the partial (to correctly create a link to it). Is there a way to
somehow determine an index of an element inside the partial or maybe to
somehow pass it along as separate variable?
Thanks in advance