earlymarket/CoPosition

View on GitHub
app/views/admin/monthly_check_ins/_index.html.arb

Summary

Maintainability
Test Coverage
table do
  thead do
    tr do
      CHECKIN_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