# Search view result and back to search results

**URL:** <https://www.ruby-forum.com/t/search-view-result-and-back-to-search-results/111934>\
**Category:** Rails\
**Created:** [August 13, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/search-view-result-and-back-to-search-results/111934 "2007-08-13T16:59:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnsonch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@johnsonch](https://www.ruby-forum.com/u/johnsonch)\
**Post date:** [August 13, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/search-view-result-and-back-to-search-results/111934/1 "2007-08-13T16:59:23Z")

</div>

I have a site that has a search which I implemented the ez\_where  
plugin. I am trying to figure out the best way to go from a detailed  
view back to the search results. I have two possible ways that I can  
think of doing this, but was hoping that someone else might have a  
better idea. My first way would be the cheap and dirty way, using the  
javascript go back 1 function. The second way would be to store the  
search information in session and over writing the search params if a  
new search was made. Right now I’m leaning towards putting the search  
params in session, but have a funny feeling that there is a better way  
to do this.

-Chris
