How to get back to my original results/list?

The main functionality of my app is the followiing:

Enter search criteria > show results> edit one of the results > back to

i need to get back to the results from my initial query but when i
select back from a single record I have edited it takes me back to
entire list( not the list returned from the user query) - can anybody

How did you wok this out. I am a Rails newbie and I am currently
working with this same issue.