Skip to content

Instantly share code, notes, and snippets.

@bkeepers
Created November 26, 2008 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkeepers/29507 to your computer and use it in GitHub Desktop.
Save bkeepers/29507 to your computer and use it in GitHub Desktop.
<table>
<% @parties.weeks.each do |week| %>
<tr>
<% week.days.each do |day| %>
<td>
<ul>
<% day.each do |party| %>
<li><!-- party info here --></li>
<% end %>
</ul>
</td>
<% end %>
</tr>
<% end %>
</table>
class PartiesController < ApplicationController
def index
@parties = Party.within(:month => params[:date])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment