app/views/projects/_stats.html.erb
<%= content_tag(:h2, relationship.humanize, id: relationship) -%>
<% a = project.send(relationship).count %>
<%= "#{a} total records - created on by month" -%>
<%= column_chart(project.send(relationship).group_by_month("#{relationship}.created_at").count) %>