Displaying 2 results from an estimated 2 matches for "item_opt".
Did you mean:
item_out
2005 Apr 13
2
Creating multiple option groups
...nSet 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 ''value''
class ItemOption < ActiveRecord::Base
belongs_to :option_set
end
When the user chooses an item and its options, it creates an OrderItem
object, which just contains the id of the item, the id of the o...
2006 Mar 30
4
Select List to change type of STI class
Hi:
I''m trying to create a drop-down list to change the type of a Single
Table Inheritance class. I tried this:
<%= select :user, :type, [ [''Author'', ''Author''],
[''Editor'', ''Editor''],
[''Administrator'', ''Administrator''] ]