Displaying 1 result from an estimated 1 matches for "optionset".
Did you mean:
option_set
2005 Apr 13
2
Creating multiple option groups
I''m setting up a basic shopping cart 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...