BharathRentals.com BharathRentals.com
2006-Jul-15 18:11 UTC
[Rails] How to pass search parameter to ruby from index file
Hi I have a search box in my html file http://www.bharathrentals.com/index.html I want to pass the search string from this html file to the search controller. My rhtml file has the following to do the search and it works <%= start_form_tag :controller => ''rents101'', :action => ''searchads'' %> <input type="text" name="typed_search" size="12"> <%= submit_tag "Search" %><%= end_form_tag %> I tried using the text field with name "typed_search" and post action to "/rents101/searchads" and it did not work any ideas? thanks for your help -- Posted via http://www.ruby-forum.com/.