app/controllers/surveyor_gui/reports_controller.rb
# return a collection of [name, count] for each response to the question
# the 'name' is the response answer text
return a collection of [name, count] for each response to the question
the 'name' is the response answer text
return a collection of [ name count ] for each response to the question the ' name ' is the response answer text
def data_counts
    if @data_counts.nil?
      data_array = []
      @responses.each_with_index do |r, index|
        data_array[index]= [r.text.to_s, r.answer_count.to_i] unless r.is_comment?
      end
      data_array
    else
      @data_counts
    end
  end
def data_counts if @data_counts . nil? data_array = [ ] @responses . each_with_index do | r , index | data_array [ index ] = [ r . text . to_s , r . answer_count . to_i ] unless r . is_comment? end data_array else @data_counts end end
return a collection of [name, count] for each response to the question
the 'name' is the response answer text
return a collection of [ name count ] for each response to the question the ' name ' is the response answer text
#  get the count for the # of responses for for each answer to this question