Displaying 1 result from an estimated 1 matches for "prev_record".
Did you mean:
prerecord
2006 Apr 20
2
previous|next navigation question
...ndex) of the
current record in the session?
Or restore the results array each time (running the same search again)
and then determine the position of the current record inside that array
somehow (How can this be done in Ruby)? Sounds very inefficient to me.
Or even add two instance variables (@prev_record, @next_record) to the
record''s model that are populated (with the adjacent records) each time
a search is run, and then store the search results array in the session?
Or ...?
Ingo Weiss
--
Posted via http://www.ruby-forum.com/.