app/controllers/survey_respondents/tags_controller.rb
# Update the tag associated with the specific survey respondent
# update the tags for a given survey respondent's tag list
Update the tag associated with the specific survey respondent
update the tags for a given survey respondent's tag list
Update the tag associated with the specific survey respondent update the tags for a given survey respondent ' s tag list
def update
    respondent = SurveyRespondent.find(params[:respondent_id])
    tag_context = params[:context] 
    tag_list = params[:tags] 
    if getTagOwner
      getTagOwner.tag(respondent, :with => tag_list, :on => tag_context)
    else
      respondent.set_tag_list_on(tag_context, tag_list) 
    end
    respondent.save
    render :layout => 'content'
  end
def update respondent = SurveyRespondent . find ( params [ :respondent_id ] ) tag_context = params [ :context ] tag_list = params [ :tags ] if getTagOwner getTagOwner . tag ( respondent , :with => tag_list , :on => tag_context ) else respondent . set_tag_list_on ( tag_context , tag_list ) end respondent . save render :layout => 'content' end
Update the tag associated with the specific survey respondent
update the tags for a given survey respondent's tag list
Update the tag associated with the specific survey respondent update the tags for a given survey respondent ' s tag list
# tag context # comma seperated list of tags # set the tag list on the respondent for the context