Forum: Ruby on Rails Getting Index When Using render :partial

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sean McMains (Guest)
on 2006-01-02 07:31
(Received via mailing list)
I'm using a web service to retrieve an array of results to a search
and a render :partial to display those results to the user, while at
the same time putting the results into the session. Is there a way
for my _book.rhtml file to have access to the index of the result
currently being displayed, like each_with_index makes available to
its block? This would allow me to have the client pass back the index
and pull the data from the session, thus assuring that the client
hasn't fooled with it.

Thanks for any ideas!
This topic is locked and can not be replied to.