class Item < Sequel::Model one_to_many :item_comments def getLink() return "/item/#{self.id}" end def type_selected?(option) if self.type == option return 'selected' else return '' end end end