Forum: Ferret dropdown list

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Dilip B. (Guest)
on 2007-01-22 07:57

 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
                      ['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.