SpeciesFileGroup/taxonworks

View on GitHub
app/views/projects/_stats.html.erb

Summary

Maintainability
Test Coverage
<%= 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) %>