controlled_vocabulary_helper.rb
348 Bytes
module ControlledVocabularyHelper
def self.get_categories_as_options
categories = []
ControlledVocabulary.attribute_names.each do |attribute|
if attribute.to_s != "id" && attribute.to_s != "software_info_id" then
categories << "<option>#{attribute.titleize}</option>".html_safe
end
end
categories
end
end