master
table do thead do tr do CONSUMER_COUNT_HEADERS.each &method(:th) end end tbody do params[:collection].each do |item| tr do th item['month'] th item['total'] th '%.2f %' % item['growth'].to_i end end end end