search for: prouct

Displaying 3 results from an estimated 3 matches for "prouct".

Did you mean: product
2006 Jul 13
8
can''t convert true into integer
I have a method: ? def reduceProuctInventoryBy(product_id, reduction) ? ? t=Product.find(:first, :conditions =>["id = ?", product_id]) ? ? t.qty=(t.qty-reduction) ? ? t.save ? end and the model: class Product < ActiveRecord::Base ? validates_presence_of :qty, :specialDescription ? validates_numericality_of :qty end...
2008 Jan 14
0
Ajax Problem
Hi, I''m using Jquery on jrails. I used ajax to submit for one textbox. I want to put an image when ajax is calling. But i''m getting problem here. Please solve my problem.Here is the part of code <label>Prouct Category</label><br/> <%#= collection_select("product", "type_1" , product_types, "product_type","product_type") %> <%= collection_select("product", "type_1" , @product_types,"product_type","product_type...
2009 Mar 16
4
Overriding ActiveRecord associations for special cases
Hi, Does anyone know a good way to override AR associations to take special cases into account. My current take is the example below which allows the ''root'' user to access all products, but only works if I remember to call it with a .all/.find or similar method: ''user.products.all'' instead of ''user.products''. Ideally I guess I want to return a