search for: categorypulldown

Displaying 1 result from an estimated 1 matches for "categorypulldown".

2006 Apr 22
6
nOOb question: How to use find_all with form input data
...m. Here''s the controller: def listItemsInCategory @items = Item.find_all(params[:item]) end Here''s the form: <%= start_form_tag :action => "listItemsInCategory", :id =>@category%> <table> <td> <label for="item_category_id">categoryPulldown</label><br> <select name="item[category_id]"> <% @items.each do |category| %> <option value="<%= category.id %>" <%= '' selected''%>> <%= category.name %> </option> <% end %></select> </td>...