search for: atributies

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

Did you mean: atributes
2006 Jan 31
2
asigning values to atributies when source is nil
I want to use something similar to the following: @total_price += { product.price <> nil ? product.price : 0.0 } This fails in rails with a "nil can''t be coerced into Float" error. What is the (most) correct way to do this? On a related issue, what is the significance of the value 40 following "cart.rb" in the trace snippet below? The entire class file