# How to create a new page using link\_to and how to do searching in the page created?

**URL:** <https://www.ruby-forum.com/t/how-to-create-a-new-page-using-link-to-and-how-to-do-searching-in-the-page-created/155644>\
**Category:** Rails\
**Created:** [December 15, 2008, 8:10am UTC](https://www.ruby-forum.com/t/how-to-create-a-new-page-using-link-to-and-how-to-do-searching-in-the-page-created/155644 "2008-12-15T08:10:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Post date:** [December 15, 2008, 8:10am UTC](https://www.ruby-forum.com/t/how-to-create-a-new-page-using-link-to-and-how-to-do-searching-in-the-page-created/155644/1 "2008-12-15T08:10:34Z")

</div>

hi,

I have implimented a application for searching the streams from  
streams table.

Presently if i invoke the index page i am seeing the listing of all  
streams and search box on the same page and after searching, the  
result is displaying on the same page with all the streams presently  
available in the streams table…

To implement this i have:  
1)one controller e.g.streams\_controller.rb  
2)one model e.g.stream.rb

3)in views i have  
index.html.erb  
show.html.erb  
new.html.erb  
edit.html.erb  
\_search.html.erb

for searching i have added a method called “get\_results” in controller  
and result is captured in  
\_search.html.erb

Now i want to do is searching in different page and result should  
display on that page.

Can any one give suggestions to do this?

thanks  
Srikanth
