How to create a new page using link_to and how to do searching in the page created?


#1

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