Displaying 1 result from an estimated 1 matches for "itemopt".
Did you mean:
atempt
2005 Apr 13
2
Creating multiple option groups
...rt type app, and the products we
have will have multiple options. Size, color, etc. I''m trying to
figure out how I can collect the the options that are selected when a
user adds the item to their cart. An OptionSet is a group of options
("Size", "Color", etc), and an ItemOption is the option itself ("12
oz", "red"). Here''s what I have so far:
class Item < ActiveRecord::Base
has_many :option_sets
end
class OptionSet < ActiveRecord::Base
has_many :item_options
belongs_to :item
end
# Has fields ''name'' and '...