search for: size_ids

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

Did you mean: size_id
2006 Jul 15
0
Validate using boolean values
The Problem: how to do the validation. I have not written it correctly!!! Given two tables: sizes and prices; with a relation: has_many ,belongs_to a Price.unit_price for a given Size.meassure must be marked ''true'' as the standard unit_price for that meassure. There will be many other unit_prices for a given meassure, those must be marked ''false'' table
2005 Oct 05
3
Shopping Cart: SKU and Product Confusion
Hi there, I''m at a loss... I was on the #ROR channel last night and spoke to a really helpful person (Defiler) who gave me some direction on building a shopping cart. Unfortunately, I wasn''t able to successfully get to where I need to go. This is the predicament I am currently finding myself in: I''m building a shopping cart for a client''s new website. They
2006 Dec 03
1
Ugly code
...ional) code. Note the hanging ">" that closes the "<input>". <p><label for="sizes">Sizes</label><br/> <% for size in @sizes %> <input type="checkbox" id="<%= size.id %>" name="size_ids[]" value="<%= size.id %>" <%if @product.sizes.include? size %>checked<%end%> > <%= size.name %> <% end %> Is there a method that will let me do this and have nicer looking code? I''ve had a hard time finding it if there is...