search for: item_category_id

Displaying 4 results from an estimated 4 matches for "item_category_id".

2006 Jul 06
7
form_remote_tag submitting to an rjs file.
I have the following form that I am trying to use, but for some reason, the form gets submitted with out the params values. <%= form_remote_tag(:url => { :action => :add_item_to_order }) %> <tr> <td> <%=collection_select(:order_item , :item_category_id, @item_categories, :id, :name)%> </td> <td> <%= text_field ''order_item'', ''quantity'', :size => "5" %> </td> <%= submit_tag ''Add'' %> This outputs at the server: Processing OrderController#add_...
2009 Sep 24
8
Drop down list ?
...header, {}, :multiple => false %> And a pretty drop down list comes up, but no matter what I do, I can''t save an item with a different category--it always stubbornly records the same one (or doesn''t change it at all). The source html code generated is: <select id="item_category_id" name="item[category_id][]"><option value="3">Awesome Things</option> <option value="1" selected="selected">Good Things</option> <option value="2">Better Things</option></select> ...and although I c...
2006 Apr 29
1
undefined method `category_id''
3: 4: <b>Category: </b> 5: <select id="item_category_id" name="item[category_id]"> 6: <%= options_from_collection_for_select @categories, "id", "category", @product.category_id %> 7: </select> 8: </p> 9:
2006 Apr 22
6
nOOb question: How to use find_all with form input data
...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="item[category_id]"> <% @items.each do |category| %> <option value="<%= category.id %>" <%= '' selected''%>> <%= category.name %> </option> <% end %>&...