Tag Archives: screen

To display the searched item in the same page

The following code present in srches_controller

The searched item is now displayed in the new search page.
But I need to display the searched item in the same index page.
What is the solution?

You can pass parameter search to index page & search your results with:

or you can set scope in your model:

and call it in controller with: