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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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!
Sean
This topic is locked and can not be replied to.