search for: weeks33

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

Did you mean: week33
2006 Nov 29
2
Unexpected behaviour looping an array in a model.
...#39;3 Weeks'',4],[''1 Month'',5]] Returning a .type on QCC.config(:product_availability) from within Product.rb confirms it''s an array and is the array I''m expecting, however the output from the product_availability_label method is "Immediate11 Week22 Weeks33 Weeks41 Month5", rather than the expected "Immediate" (in the instance where self.availability is 1). No errors are raised. I know I could do this from within a helper, but before I make any alterations, I''d rather understand what''s going on. I''m using Rub...