module SoftwareCategoriesHelper def self.get_categories_as_options categories = ["".html_safe] value = 1 SoftwareCategories.attribute_names.each do |attribute| if attribute.to_s != "id" && attribute.to_s != "software_info_id" then categories << "".html_safe value+=1 end end categories end end