Forum: Ruby on Rails how to create a new page using link_to and how to do searching in the page created ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E38118c6d20b4544e424fd700571e090?d=identicon&s=25 srikanth (Guest)
on 2008-12-15 08:10
(Received via mailing list)
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
This topic is locked and can not be replied to.