app/controllers/survey_respondents/tags_admin_controller.rb
# The start page, we start with a hash of the tag contexts and their associated tags
The start page, we start with a hash of the tag contexts and their associated tags
The start page we start with a hash of the tag contexts and their associated tags
def index
    taggings = ActsAsTaggableOn::Tagging.
                  where("taggable_type like 'SurveyRespondent'").
                  distinct(:context)
    @tagContexts = Array.new
    taggings.each do |tagging|
      @tagContexts << tagging.context
    end
  end
def index taggings = ActsAsTaggableOn :: Tagging . where ( "taggable_type like 'SurveyRespondent'" ) . distinct ( :context ) @tagContexts = Array . new taggings . each do | tagging | @tagContexts << tagging . context end end
The start page, we start with a hash of the tag contexts and their associated tags
The start page we start with a hash of the tag contexts and their associated tags
# for each context get the set of tags (sorted), and add them to the collection for display on the page