Skip to content

Instantly share code, notes, and snippets.

@spacecowb0y
Created May 29, 2011 18:22
Show Gist options
  • Save spacecowb0y/998008 to your computer and use it in GitHub Desktop.
Save spacecowb0y/998008 to your computer and use it in GitHub Desktop.
Stats by Month
<% for i in 1..12 do %>
<tr>
<th><%= Date::MONTHNAMES[i][0..2] %></th>
<td>
<%= @projects.all(:conditions => { :created_at => Date.civil(2011, 0+i.to_f, 1)..Date.civil(2011, 0+i.to_f, -1)}).count %>
</td>
</tr>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment