Forum: Ferret dropdown list

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.
84b78951fdd827da337a4491c08aab85?d=identicon&s=25 Dilip Bv (dilip)
on 2007-01-22 06:57

hi
 i am new to ruby and i have  installed ferret for search using text box
for search by the string in
the text box
insted of that i am trying to implement a drop down list,with the
selected item in the drop down it should search. problem hear is that
the search is not going  by the item please help me

The code is:
<input type="text" name="query" value="<%= h @query %>" /></h4>
 insted of this i tryied
        <%= select_tag 'category',options_for_select([['ALL
RESIDENTIAL'],
                      ['ALL COMMERCIAL'],
                      ['Commercial Land'],
                      ['Industrial Building'],
                      ['Industrial Shed'],
                      ['Farm House']], to_s),  :onchange =>
"content.category(this,notnull ) ;"  %>

please help me....
 Thank you.
This topic is locked and can not be replied to.