Displaying 1 result from an estimated 1 matches for "listitemsincategory".
2006 Apr 22
6
nOOb question: How to use find_all with form input data
...er(it''s mashed-hash? )
I''m using a pulldown box that contains a list of the categories. I''ve
tried some simple variations, but can''t seem to get it. It has to be
something silly. I included the form code at the bottom.
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=&quo...