search for: item_desc

Displaying 2 results from an estimated 2 matches for "item_desc".

2006 Mar 10
5
PDF::Writer Simpletable Iteration
...shows in the generated PDF. Any ideas? My code follows: def pdf @item = Item.find(:all) _p = PDF::Writer.new _p.select_font ''Times-Roman'' PDF::SimpleTable.new do |tab| tab.title = "Item List" tab.column_order.push(*%w{item_code item_name item_desc item_cost}) tab.columns["item_code"] = PDF::SimpleTable::Column.new("item_code") { |col| col.heading = "Code" } tab.columns["item_name"] = PDF::SimpleTable::Column.new("item_name") { |col| col.heading = "Item" } tab.c...
2006 Jul 08
2
Trouble getting select to work
...n adding the record: Parameters: {"commit"=>"Create", "category"=>{"category"=>"Furniture - Kitchen"}, "action"=>"create", [4;35;1mSQL (0.062000) INSERT INTO donations (`best_contact_time`, `city`, `created_on`, `item_desc`, `category`, ... The category of "Furniture - Kitchen" is probably the eighth in the list and is in fact the one chosen. Two things then: 1) Why isn''t this being updated into the database record (the field in the donation record is named category) 2) Will the current code...