search for: hard_product

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

Did you mean: add_product
2006 May 14
3
Help with domain model/database design
Hi All, I was wondering if I could get some comments on my approach to the design of the domain model and database for my rails app. I don''t have much experience in this so I am wondering if I am heading in the right direction. My app is an ecommerce site for my business which is a record label. That might seem straight forward, but the one thing that might be tricky is that
2006 May 30
0
inexplicable undefined method errors
...ad a function 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...
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