search for: price_ca

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

Did you mean: price_call
2006 May 30
0
inexplicable undefined method errors
...from the pragprog book in my application_helper.rb file. Here it is: def format_price(amount) dollars, cents = amount.divmod(100) sprintf("$%d.%02d", dollars, cents) end I call this function in my view quite simply like this: <td><%= format_price(hard_product.price_ca) %></td> This was working fine until today, suddenly for now apparent reason, it gives an error: undefined method `format_price'' for #<#<Class:0x267de2c>:0x267ddc8> Even when I move this function to the controller for my view I still get the error. But I can'...
2006 Jun 07
3
trouble wtih webstore schema, handling product variations
Hi Railers, Does anyone have any guidance on setting up a simple way to handle product variations (e.g garment size/color)? Initially, I had thought that I would make a variation model which defined the extra bits, but it seems quite inflexible especially so if a store were to sell non-clothing items that also had variants of one flavor or another. product has_many variations title